-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Unable to generate 2FA backup codes #10766
Comments
GitMate.io thinks possibly related issues are #9997 (Delete or disable backup 2FA codes), #10500 (2FA provider selection shown if only one provider active and backup codes generated), #3130 (After upgrade disable/enable 2fa generates a new code ), #9036 ([2FA] longevity of Backup-Codes), and #1108 (2FA: let users create and authenticate via backup codes). |
… so … these encrypted values got longer, huh, @rullzer 😉 Oh, I think I know why I didn't see this when I tested the backup codes last week: sqlite probably does not enforce the column length limit. |
Probably caused by #9074. |
Hey, @paraviz02, thanks a lot for reporting this, especially with the proposed solution. This made it very easy to fix this bug. Thanks 🚀 |
@ChristophWurst yes they did... I didn't think about your app indeed. whoops... |
No worries :) |
@ChristophWurst it's a pleasure! The least I can do ... Cheers! |
Steps to reproduce
Expected behaviour
Should generate codes and display for user.
Actual behaviour
Error message given, no codes generated. Issue is fixed by modifying the oc_twofactor_backupcodes table, and increasing the size of code column from 64 to 100.
Server configuration
Operating system: Ubuntu 18.04.1
Web server: Apache 2.4.29
Database: MySQL 5.7.23
PHP version: PHP 7.2.7
Nextcloud version: Nextcloud 14 Beta 4
Updated from an older Nextcloud/ownCloud or fresh install: Updated from Nextcloud 13
Where did you install Nextcloud from: Downloaded tar.gz
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local
Are you using encryption: no
Are you using an external user-backend, if yes which one: None yet, but going to be configuring for Active Directory
LDAP configuration (delete this part if not used)
LDAP config
Client configuration
Browser: Safari 11.1
Operating system: MacOS 10.13.4
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: