debian-mirror-gitlab/app/views/u2f/_authenticate.html.haml

20 lines
1 KiB
Text
Raw Normal View History

#js-authenticate-u2f
2018-12-23 12:14:25 +05:30
%a.btn.btn-block.btn-info#js-login-2fa-device{ href: '#' }= _("Sign in via 2FA code")
2018-03-27 19:54:05 +05:30
-# haml-lint:disable InlineJavaScript
%script#js-authenticate-u2f-in-progress{ type: "text/template" }
2018-12-23 12:14:25 +05:30
%p= _("Trying to communicate with your device. Plug it in (if you haven't already) and press the button on the device now.")
%script#js-authenticate-u2f-error{ type: "text/template" }
%div
2018-12-23 12:14:25 +05:30
%p <%= error_message %> (#{_("error code:")} <%= error_code %>)
%a.btn.btn-block.btn-warning#js-u2f-try-again= _("Try again?")
%script#js-authenticate-u2f-authenticated{ type: "text/template" }
%div
2018-12-23 12:14:25 +05:30
%p= _("We heard back from your U2F device. You have been authenticated.")
2017-08-17 22:00:37 +05:30
= form_tag(new_user_session_path, method: :post, id: 'js-login-u2f-form') do |f|
2016-09-29 09:46:39 +05:30
- resource_params = params[resource_name].presence || params
= hidden_field_tag 'user[remember_me]', resource_params.fetch(:remember_me, 0)
= hidden_field_tag 'user[device_response]', nil, class: 'form-control', required: true, id: "js-device-response"