Skip to content

Commit

Permalink
ensure timeout error is shown on u2f timeout (go-gitea#14417)
Browse files Browse the repository at this point in the history
Backport go-gitea#14417

Signed-off-by: Andrew Thornton <[email protected]>
  • Loading branch information
zeripath committed Jan 22, 2021
1 parent fb274ec commit 2c1f775
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/user/auth/u2f_error.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="hide" id="u2f-error-4">
{{.i18n.Tr "u2f_error_4"}}
</div>
<div class="hide u2f-error-5">
<div class="hide u2f_error_5">
{{.i18n.Tr "u2f_error_5"}}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web_src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2198,7 +2198,7 @@ function u2fError(errorType) {
2: $('#u2f-error-2'),
3: $('#u2f-error-3'),
4: $('#u2f-error-4'),
5: $('.u2f-error-5')
5: $('.u2f_error_5')
};
u2fErrors[errorType].removeClass('hide');

Expand Down

0 comments on commit 2c1f775

Please sign in to comment.