ensure timeout error is shown on u2f timeout#14417
Conversation
Signed-off-by: Andrew Thornton <art27@cantab.net>
| 3: $('#u2f-error-3'), | ||
| 4: $('#u2f-error-4'), | ||
| 5: $('.u2f-error-5') | ||
| 5: $('.u2f_error_5') |
There was a problem hiding this comment.
is this inconsistency really right?
There was a problem hiding this comment.
yes look at line 29 in u2f_error.tmpl
There was a problem hiding this comment.
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. |
techknowlogick
left a comment
There was a problem hiding this comment.
approving per my latest comment.
|
🚀 |
Backport go-gitea#14417 Signed-off-by: Andrew Thornton <art27@cantab.net>
U2F timeout error is not currently shown due to miss match the '-' and '_' in the class names on u2f_error.tmpl