summaryrefslogtreecommitdiff
path: root/app/views/admin/users
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-06-19 15:04:47 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-06-19 15:04:47 -0400
commit22dd2240a6ec80955b98667c727326135a2f7f53 (patch)
treedc9870b22818c3e82be78368aa1e05f2981a2393 /app/views/admin/users
parent6c8f0fe906d76cf27f22ffcd3475084f6e0398ec (diff)
downloadgitlab-ce-22dd2240a6ec80955b98667c727326135a2f7f53.tar.gz
Add 2FA status to Admin::Users#show
Diffstat (limited to 'app/views/admin/users')
-rw-r--r--app/views/admin/users/show.html.haml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml
index f7195ac3326..48cd22fc34b 100644
--- a/app/views/admin/users/show.html.haml
+++ b/app/views/admin/users/show.html.haml
@@ -50,6 +50,14 @@
= link_to remove_email_admin_user_path(@user, email), data: { confirm: "Are you sure you want to remove #{email.email}?" }, method: :delete, class: "btn-xs btn btn-remove pull-right", title: 'Remove secondary email', id: "remove_email_#{email.id}" do
%i.fa.fa-times
+ %li.two-factor-status
+ %span.light Two-factor Authentication:
+ %strong{class: @user.two_factor_enabled? ? 'cgreen' : 'cred'}
+ - if @user.two_factor_enabled?
+ Enabled
+ - else
+ Disabled
+
%li
%span.light Can create groups:
%strong