Closed
Description
- Gitea version (or commit ref): 1.7.2
- Git version: 2.17.1
- Operating system: Linux / Ubuntu 18.04
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
Description
After enabling FIDO / U2F for an account on my Gitea server, I am not able to use U2F on Safari, even with the Safari FIDO U2F extension installed and enabled.
If I change my user agent in the developer settings to include Chrome, it works as expected
- If the extension is installed/enabled, it uses U2F
- If the extension is not installed / disabled, it asks for TOTP
Gitea should not rely on user agent string at all to determine if U2F is available. Checking that window.u2f
is non-null should be enough. (for example, it works fine with Github)