NC 15.0.0 - Two Auth - Error while loading browser sessions and device tokens

Hello,

Upgraded NC 15.0.0
PHP 7.2
Postgresql 10
TwoAuth updated

I cannot see anymore my token. i have
Error while loading browser sessions and device tokens
and nothing to see in Nextcloud Log…

What can i do for having a better troubleshouting ?
Thanks

In the Database i have all my token at oc_authtoken

Hm, I don’t understand the issue actually :frowning:
Could you describe in detail or post some screenshots?

i cannot create token anymore

The browser debug console might provide some useful output then.

Ah Yes, look at that !

TypeError: $(...).data(...) is undefined[En savoir plus] [settings.js:4:48](https://cloud.werry.ovh/apps/unsplash/js/settings.js?v=3ec13532-2)

Échec du chargement pour l’élément <script> dont la source est « https://cloud.werry.ovh/core/vendor/zxcvbn/dist/zxcvbn.js ». [security:1:1](https://cloud.werry.ovh/settings/user/security)

Content Security Policy: Les paramètres de la page ont empêché le chargement d’une ressource à https://cloud.werry.ovh/core/vendor/zxcvbn/dist/zxcvbn.js (« script-src »).

Erreur dans les liens source : TypeError: NetworkError when attempting to fetch resource. URL de la ressource : https://cloud.werry.ovh/apps/twofactor_totp/js/settings.js?v=3ec13532-2 URL du lien source : settings.js.map[En savoir plus]

Erreur dans les liens source : TypeError: NetworkError when attempting to fetch resource. URL de la ressource : https://cloud.werry.ovh/apps/notifications/js/notifications.js?v=3ec13532-2 URL du lien source : notifications.js.map[En savoir plus]

Erreur dans les liens source : TypeError: NetworkError when attempting to fetch resource. URL de la ressource : https://cloud.werry.ovh/apps/twofactor_backupcodes/js/settings.js?v=3ec13532-2 URL du lien source : settings.js.map[En savoir plus]

Erreur dans les liens source : TypeError: NetworkError when attempting to fetch resource. URL de la ressource : https://cloud.werry.ovh/apps/notifications/js/notifications.js?v=3ec13532-2 URL du lien source : notifications.js.map[En savoir plus]

Erreur dans les liens source : TypeError: NetworkError when attempting to fetch resource. URL de la ressource : https://cloud.werry.ovh/apps/twofactor_backupcodes/js/settings.js?v=3ec13532-2 URL du lien source : settings.js.map[En savoir plus]

Erreur dans les liens source : TypeError: NetworkError when attempting to fetch resource. URL de la ressource : https://cloud.werry.ovh/apps/twofactor_totp/js/settings.js?v=3ec13532-2 URL du lien source : settings.js.map[En savoir plus]

It’s linked with CSP, and i don’t know what is that name …

core/vendor/zxcvbn/dist/zxcvbn.js

It’s the bad password checker, if your password is too easy

This looks like a bug, that might be worth reporting on Github. However, unsplash shouldn’t affect the user settings area, I guess. Unsplash was just the wallpaper for the login screen, right?

Interesting. So you could try to disable the check of passwords against the “have I powned” site in the admin security settings. Maybe the tokens show up again.

When i unload Unsplash i do not have the first error anymore,
I don’t know how to disable the Have I Been Pwn ? how do you do that ?

As admin user:

Okay it wasn’t enabled…
Strange
the problem is about Two Auth :
Error in this source link : TypeError: NetworkError when attempting to fetch resource.
URL of the ressource : https://cloud.werry.ovh/apps/twofactor_backupcodes/js/settings.js?v=3ec13532-2
URL of the source link : settings.js.map

But when i try the url https://cloud.werry.ovh/apps/twofactor_backupcodes/js/settings.js?v=3ec13532-2
it works…

I don’t understand any french :disappointed_relieved: So I don’t get some of the messages.

The URL for twofactor doesn’t seem to work for me. I only see javascript (vue) code.

Ha… what you should see normally ?
A php module for nginx should be activated ?

I edited my log

Very strange, on my server it also prints some javascript code only.
A bug in two-factor-auth maybe?

Okay, I was curious and updated my production instance as well. I don’t see this issue although I have Two-Factor-Auth enabled as well.
Could you check if there are further app updates? Probably do a full refresh in the list of all your apps via CTRL + F5.
If there are any app updates (apart from apps that have known issues like groupfolders), please install these updates.
Do a full refresh in your personal settings under Security again and see if everything works fine there. If not, try to disable and re-enable the Two-Factor-Auth app.

Strange this morning this is working…