Actions
Defect #33925
closedArgumentError in lib/redmine/twofa/base.rb after updating a source file in development mode
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
The attached patch fix-2fa-argument-error.patch fixes the error described below. The error occurs in development mode. No problem in production mode.
Steps to reproduce:
1. Run Redmine in development mode (bin/rails s
)
2. Login with any user
3. Go to "My account" and click "Enable authenticator app"
4. Setup up two-factor authentication for the account
5. Update some source file of Redmine (e.g. run touch config/locales/en.yml
)
6. 2. Go to "My account" and click "Generate backup codes"
7. You will see the following error entering your authentication code
ArgumentError in TwofaBackupCodesController#create A copy of Redmine::Twofa::Base has been removed from the module tree but is still active!
Files
Related issues
Updated by Go MAEDA over 4 years ago
- Related to Feature #1237: Add support for two-factor authentication added
Updated by Felix Schäfer over 4 years ago
Thank you for catching this bug. The patch looks good to me.
Updated by Go MAEDA over 4 years ago
- Status changed from New to Closed
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the fix as a part of #1237.
Thank you for checking the fix.
Actions