summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/users/_form.html.erb2
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? %>