debian-mirror-gitlab/app/views/admin/sessions/two_factor.html.haml

16 lines
678 B
Text
Raw Normal View History

2020-04-08 14:13:33 +05:30
- @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
2020-05-24 23:13:21 +05:30
= render 'devise/shared/tabs_normal', tab_title: _('Enter Admin Mode'), render_signup_link: false
2020-04-08 14:13:33 +05:30
.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?
2020-06-23 00:09:42 +05:30
= render 'u2f/authenticate', render_remember_me: false, target_path: admin_session_path