]> source.dussan.org Git - redmine.git/commitdiff
Don't show "Two-factor authentication" on new user form (#1237, #34495).
authorGo MAEDA <maeda@farend.jp>
Fri, 25 Dec 2020 08:30:20 +0000 (08:30 +0000)
committerGo MAEDA <maeda@farend.jp>
Fri, 25 Dec 2020 08:30:20 +0000 (08:30 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20691 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/users/_form.html.erb

index ab9f7b5416dfb646acaec68c51283065260338bc..4b030d92056ff43759bb130d01047e5d84a3bcb3 100644 (file)
@@ -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? %>