Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/sessions/two_factor.html.haml')
-rw-r--r--app/views/admin/sessions/two_factor.html.haml15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/admin/sessions/two_factor.html.haml b/app/views/admin/sessions/two_factor.html.haml
new file mode 100644
index 00000000000..3a0cbe3facb
--- /dev/null
+++ b/app/views/admin/sessions/two_factor.html.haml
@@ -0,0 +1,15 @@
+- @hide_breadcrumbs = true
+- page_title _('Enter 2FA for Admin Mode')
+
+.row.justify-content-center
+ .col-md-5.new-session-forms-container
+ .login-page
+ #signin-container
+ = render 'admin/sessions/tabs_normal', tab_title: _('Enter Admin Mode')
+ .tab-content
+ .login-box.tab-pane.active{ id: 'login-pane', role: 'tabpanel' }
+ .login-body
+ - if current_user.two_factor_otp_enabled?
+ = render 'admin/sessions/two_factor_otp'
+ - if current_user.two_factor_u2f_enabled?
+ = render 'admin/sessions/two_factor_u2f'