diff options
author | Go MAEDA <maeda@farend.jp> | 2020-12-25 08:30:20 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-12-25 08:30:20 +0000 |
commit | 46156e08a9a61a07c89045ad6e6d9ccbaebd875a (patch) | |
tree | 6c6f6702e428f73063aa80b665e8256212776f2f /app/views | |
parent | cde271e79e4c7ae1087797ffe1250f2d8aac6902 (diff) | |
download | redmine-46156e08a9a61a07c89045ad6e6d9ccbaebd875a.tar.gz redmine-46156e08a9a61a07c89045ad6e6d9ccbaebd875a.zip |
Don't show "Two-factor authentication" on new user form (#1237, #34495).
git-svn-id: http://svn.redmine.org/redmine/trunk@20691 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/users/_form.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/users/_form.html.erb b/app/views/users/_form.html.erb index ab9f7b541..4b030d920 100644 --- a/app/views/users/_form.html.erb +++ b/app/views/users/_form.html.erb @@ -42,7 +42,7 @@ <p><%= f.check_box :generate_password %></p> <p><%= f.check_box :must_change_passwd %></p> </div> - <% if Setting.twofa? -%> + <% if Setting.twofa? && !@user.new_record? -%> <p> <label><%=l :setting_twofa -%></label> <% if @user.twofa_active? %> |