Project

General

Profile

Actions

Defect #33932

closed

Can't view "My account" page when 2fa is setting to optional

Added by ChunChang (Nagaharu) Lo about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Accounts / authentication
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

error message:

Started GET "/my/account" for 59.127.53.179 at 2020-08-31 03:53:37 +0000
Processing by MyController#account as HTML
  Current user: shortie (id=3)
  Rendering my/account.html.erb within layouts/base
  Rendered my/account.html.erb within layouts/base (15.5ms)
Completed 500 Internal Server Error in 25ms (ActiveRecord: 3.5ms)

ActionView::Template::Error (uninitialized constant Redmine::Twofa::Base
Did you mean?  Base64):
    35:       <%=l 'twofa_currently_active', twofa_scheme_name: l("twofa__#{@user.twofa_scheme}__name") -%><br/>
    36:       <%= link_to l('button_disable'), { controller: 'twofa', action: 'deactivate_init', scheme: @user.twofa_scheme }, method: :post -%><br/>
    37:       <%= link_to l('twofa_generate_backup_codes'), { controller: 'twofa_backup_codes', action: 'init' }, method: :post, data: { confirm: Redmine::Twofa.for_user(User.current).backup_codes.any? ?
    38:     <% else %>
    39:       <% Redmine::Twofa.available_schemes.each do |s| %>
    40:         <%= link_to l("twofa__#{s}__label_activate"), { controller: 'twofa', action: 'activate_init', scheme: s }, method: :post -%><br/>
    41:       <% end %>

lib/redmine/twofa/totp.rb:22:in `<module:Twofa>'
lib/redmine/twofa/totp.rb:21:in `<module:Redmine>'
lib/redmine/twofa/totp.rb:20:in `<top (required)>'
lib/redmine/twofa.rb:58:in `block in scan_builtin_schemes'
lib/redmine/twofa.rb:57:in `each'
lib/redmine/twofa.rb:57:in `scan_builtin_schemes'
lib/redmine/twofa.rb:52:in `initialize_schemes'
lib/redmine/twofa.rb:45:in `schemes'
lib/redmine/twofa.rb:28:in `available_schemes'
app/views/my/account.html.erb:38:in `block in _app_views_my_account_html_erb__509002245855036881_70041001997940'
app/helpers/application_helper.rb:1404:in `labelled_form_for'
app/views/my/account.html.erb:14:in `_app_views_my_account_html_erb__509002245855036881_70041001997940'
lib/redmine/sudo_mode.rb:64:in `sudo_mode'

Related issues

Related to Redmine - Feature #1237: Add support for two-factor authenticationClosedGo MAEDA2008-05-14

Actions
Actions

Also available in: Atom PDF