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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
677 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
2022-07-16 23:28:13 +05:30
= render 'devise/shared/tab_single', tab_title: _('Enter Admin Mode')
2020-04-08 14:13:33 +05:30
.tab-content
2022-07-16 23:28:13 +05:30
.login-box.tab-pane.gl-p-5.active{ id: 'login-pane', role: 'tabpanel' }
2020-04-08 14:13:33 +05:30
.login-body
- if current_user.two_factor_otp_enabled?
= render 'admin/sessions/two_factor_otp'
2020-11-24 15:15:51 +05:30
- if current_user.two_factor_webauthn_u2f_enabled?
= render 'authentication/authenticate', render_remember_me: false, target_path: admin_session_path