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
765 B
Text
Raw Normal View History

2020-04-08 14:13:33 +05:30
- page_title _('Enter 2FA for Admin Mode')
2023-06-20 00:43:36 +05:30
- add_page_specific_style 'page_bundles/login'
2020-04-08 14:13:33 +05:30
.row.justify-content-center
.col-md-5.new-session-forms-container
.login-page
2023-07-09 08:55:56 +05:30
#signin-container{ class: ('borderless' if Feature.enabled?(:restyle_login_page, @project)) }
= 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
2023-07-09 08:55:56 +05:30
- if current_user.two_factor_enabled?
2020-04-08 14:13:33 +05:30
= render 'admin/sessions/two_factor_otp'
2023-05-27 22:25:52 +05:30
- if current_user.two_factor_webauthn_enabled?
2020-11-24 15:15:51 +05:30
= render 'authentication/authenticate', render_remember_me: false, target_path: admin_session_path