ensure timeout error is shown on u2f timeout (#14417)

Signed-off-by: Andrew Thornton <art27@cantab.net>
pull/14392/head
zeripath 4 years ago committed by GitHub
parent af7054511e
commit 20f980dcc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      templates/user/auth/u2f_error.tmpl
  2. 2
      web_src/js/index.js

@ -20,7 +20,7 @@
<div class="hide" id="u2f-error-4"> <div class="hide" id="u2f-error-4">
{{.i18n.Tr "u2f_error_4"}} {{.i18n.Tr "u2f_error_4"}}
</div> </div>
<div class="hide u2f-error-5"> <div class="hide u2f_error_5">
{{.i18n.Tr "u2f_error_5"}} {{.i18n.Tr "u2f_error_5"}}
</div> </div>
</div> </div>

@ -2243,7 +2243,7 @@ function u2fError(errorType) {
2: $('#u2f-error-2'), 2: $('#u2f-error-2'),
3: $('#u2f-error-3'), 3: $('#u2f-error-3'),
4: $('#u2f-error-4'), 4: $('#u2f-error-4'),
5: $('.u2f-error-5') 5: $('.u2f_error_5')
}; };
u2fErrors[errorType].removeClass('hide'); u2fErrors[errorType].removeClass('hide');

Loading…
Cancel
Save