-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2FA: Invalid QR code on any device/browser #1172
Comments
I can confirm this bug on our local installation. Existing users can still log in, however when new Users (from the LDAP-Backend) are required to set up their TOTP-App, the resulting QR-Code will show as invalid in FreeOTP+ The log shows the following info:
This installation has been around since NC19, and we have had TOTP activated ever since. If you need additional information, i would be happy to help. Thank you for your work! |
I had the same issue but for me it was solved by fixing the servertime and mounting |
Hello Andrwe,
I do not think that this is the same issue. I have installed Nextcloud on its own Vbuntu 21.10 VM, and have time-synchronization working. If the time on the server would be wrong, the TOTP-codes generated for the other users would no longer be correct. In this case, only the first-time-setup of the TOTP does not work, and there are informations missing to generate a full token, as can be seen by the error thrown in the log. Thank you though for your help in trying to solve our problem! |
I have the same problems here. For local users it is works. Not for ldap users. |
Hello! |
Thanks for the advice, it really helped, thank you so much, you helped out! |
LMAO, hahaha it really worked for you? i can't believe it. In the end my problem like yours was the time, which must be the same on both server and client and so on. |
Thank you very much! Everything works fine. To be honest, I didn't even think about it, I thought that the problem was completely different, I wouldn't have figured it out myself. |
Steps to reproduce
Server configuration
Operating system: Ubuntu 20.04
Web server: nextcloud docker wth Nginx Proxy Manager in front
Database: mariadb 10.5
PHP version: 8.0.14
Version: Nextcloud Hub II (23.0.0)
Updated from an older version or fresh install: transferred from another server with the same version
List of activated apps:
Enabled: accessibility: 1.9.0, activity: 2.15.0, admin_audit: 1.13.0, bruteforcesettings: 2.3.0, calendar: 3.0.4, circles: 23.0.0, cloud_federation_api: 1.6.0, comments: 1.13.0, contacts: 4.0.7, contactsinteraction: 1.4.0, dashboard: 7.3.0, dav: 1.21.0, federatedfilesharing: 1.13.0, federation: 1.13.0, files: 1.18.0, files_external: 1.15.0, files_pdfviewer: 2.4.0, files_retention: 1.12.0, files_rightclick: 1.2.0, files_sharing: 1.15.0, files_trashbin: 1.13.0, files_versions: 1.16.0, files_videoplayer: 1.12.0, firstrunwizard: 2.12.0, gpxpod: 4.3.0, logreader: 2.8.0, lookup_server_connector: 1.11.0, maps: 0.1.10, nextcloud_announcements: 1.12.0, notes: 4.2.0, notifications: 2.11.1, oauth2: 1.11.0, onlyoffice: 7.2.1, password_policy: 1.13.0, phonetrack: 0.6.9, photos: 1.5.0, privacy: 1.7.0, provisioning_api: 1.13.0, ransomware_protection: 1.12.0, recommendations: 1.2.0, serverinfo: 1.13.0, settings: 1.5.0, sharebymail: 1.13.0, support: 1.6.0, survey_client: 1.11.0, systemtags: 1.13.0, tasks: 0.14.2, text: 3.4.0, theming: 1.14.0, twofactor_backupcodes: 1.12.0, twofactor_totp: 6.2.0, updatenotification: 1.13.0, user_status: 1.3.1, viewer: 1.7.0, weather_status: 1.3.0, workflowengine: 2.5.0;
Disabled: encryption, sharerenamer, spreed, user_ldap
The content of config/config.php:
Client configuration
Browser: Firefox latest version, Chrome latest version, Nextcloud app on iOS latest version
Operating system: Windows 10, iOS
Logs
Web server error log
I don't know where are the logs of the web server inside the Nextcloud docker container
Server log (data/nextcloud.log)
Browser log
I don't know how to save the broswer network log, so...her it is:
The text was updated successfully, but these errors were encountered: