-
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
Forced TOTP setup not working if backup codes are set #1160
Comments
There is a request to |
That request returns a 303 and redirects to |
While I haven't got the time to debug this in detail right now I think it's because of https://github.com/nextcloud/server/blob/a72af6acc38a2a6055fca933f0f5fe991b7f7333/core/Middleware/TwoFactorMiddleware.php#L102 vs https://github.com/nextcloud/server/blob/a72af6acc38a2a6055fca933f0f5fe991b7f7333/core/Middleware/TwoFactorMiddleware.php#L112. The second one should also check primary providers (all except backup codes), not all providers. In that case it's a regression of nextcloud/server#28078. |
Yup, that's the issue, I changed the second one to |
Fix is at nextcloud/server#30193 |
Steps to reproduce
Expected behaviour
User gets shown a valid QR code
Actual behaviour
QR code says "undefined"
Server configuration
Operating system: Ubuntu 20.04.3
Web server: Apache 2.4.41
Database: MariaDB 10.3.31
PHP version: 7.4.3
Version: 22.2.3 with and without nextcloud/server#29752 applied
Updated from an older version or fresh install: Updated from older version
List of activated apps:
Client configuration
Browser: Firefox, Chrome, Edge
Logs
Server log (data/nextcloud.log)
The text was updated successfully, but these errors were encountered: