summaryrefslogtreecommitdiff
path: root/app/views/devise/sessions/two_factor.html.haml
blob: 3a19e926b6dffc8450b3dd74cff37ef0b0105334 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
%div
  .login-box
    .login-heading
      %h3 Two-Factor Authentication
    .login-body
      = form_for(resource, as: resource_name, url: session_path(resource_name), method: :post) do |f|
        - if @error
          .alert.alert-danger
            = @error
        .hide
          = f.text_field :login, class: "form-control top", placeholder: "Username or Email", autofocus: "autofocus"
          = f.password_field :password, class: "form-control bottom", placeholder: "Password"
        = f.text_field :otp_attempt, class: 'form-control',
          placeholder: 'Two-factor authentication token', required: true, autofocus: true
        .prepend-top-20
          = f.submit "Verify code", class: "btn btn-save"