diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-09 17:02:06 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-05-09 17:32:49 -0400 |
commit | 76873ce4a49be9a591082f7b96482ebdc9cace9d (patch) | |
tree | 3993eb50b53b06c93ee3f2e7c8bce4e3df51cd06 /app/views | |
parent | 3fb0fedd0415732b3c1bf0aaa66abf1197012d75 (diff) | |
download | gitlab-ce-76873ce4a49be9a591082f7b96482ebdc9cace9d.tar.gz |
Move "invalid 2FA code" error message to the flash
This makes it consistent with the Invalid email/password error message
from the previous step.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/devise/sessions/two_factor.html.haml | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/app/views/devise/sessions/two_factor.html.haml b/app/views/devise/sessions/two_factor.html.haml index 30ddd0bd3c6..22b2c1a186b 100644 --- a/app/views/devise/sessions/two_factor.html.haml +++ b/app/views/devise/sessions/two_factor.html.haml @@ -4,9 +4,6 @@ %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 = f.text_field :otp_attempt, class: 'form-control', placeholder: 'Two-factor authentication code', required: true, autofocus: true %p.help-block.hint If you've lost your phone, you may enter one of your recovery codes. .prepend-top-20 |