-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ensure timeout error is shown on u2f timeout #14417
Conversation
Signed-off-by: Andrew Thornton <[email protected]>
@@ -2243,7 +2243,7 @@ function u2fError(errorType) { | |||
2: $('#u2f-error-2'), | |||
3: $('#u2f-error-3'), | |||
4: $('#u2f-error-4'), | |||
5: $('.u2f-error-5') | |||
5: $('.u2f_error_5') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this inconsistency really right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes look at line 29 in u2f_error.tmpl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't it be better to change L29 of the template to u2f-error-5
instead to retain consistency?
I would argue we should rename these classes and the locale keys to match: interface ErrorCode { from https://fidoalliance.org/specs/fido-u2f-v1.0-nfc-bt-amendment-20150514/fido-u2f-javascript-api.html But that would not be backportable. |
mmm... yes, that would be much better. although as you said, not backportable. Lets save the refactor for another PR then. I'll create an issue for the refactor and tag it as "good-first-issue" in case someone is looking for a PR to ease their way into contributing to Gitea. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving per my latest comment.
🚀 |
Backport go-gitea#14417 Signed-off-by: Andrew Thornton <[email protected]>
Backport #14417 Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: 6543 <[email protected]>
U2F timeout error is not currently shown due to miss match the '-' and '_' in the class names on u2f_error.tmpl