summaryrefslogtreecommitdiff
path: root/app/views/profiles/two_factor_auths/new.html.haml
blob: fe03a259a12e9367c59c0cd085d106c048ce419c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
- page_title 'Two-factor Authentication', 'Account'

%h2.page-title Two-Factor Authentication (2FA)
%p
  Download the Google Authenticator application from App Store for iOS or
  Google Play for Android and scan this code.

%hr

= form_tag profile_two_factor_auth_path, method: :post, class: 'form-horizontal' do |f|
  - if @error
    .alert.alert-danger
      = @error
  .form-group
    .col-sm-2
    .col-sm-10
      = raw @qr_code
  .form-group
    = label_tag :pin_code, nil, class: "control-label"
    .col-sm-10
      = text_field_tag :pin_code, nil, class: "form-control", required: true, autofocus: true
  .form-actions
    = submit_tag 'Submit', class: 'btn btn-success'