From 46156e08a9a61a07c89045ad6e6d9ccbaebd875a Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 25 Dec 2020 08:30:20 +0000 Subject: [PATCH] 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 --- app/views/users/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@

<%= f.check_box :generate_password %>

<%= f.check_box :must_change_passwd %>

- <% if Setting.twofa? -%> + <% if Setting.twofa? && !@user.new_record? -%>

<% if @user.twofa_active? %> -- 2.39.5