Closed
Description
- Gitea version (or commit ref): 1.9.4
- Git version: 2.22.0
- Operating system: GNU/Linux Debian 9
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No (ALLOW_ONLY_EXTERNAL_REGISTRATION not set to true)
- Not relevant
- Log gist:
Description
The password input is disabled if only external registration is enabled.
However the form can not be successfully submitted because Gitea requires an input to the password text field.
The following code snippet states, that this is a feature for "second factor"-enabled accounts.
Lines 894 to 898 in 280f4be
However if the existing user has set a password already, the password field needs to be shown. Otherwise he is unable to authenticate and link the account.
Maybe there should be an additional setting specifically for "second factor"-enabled accounts instead of using ALLOW_ONLY_EXTERNAL_REGISTRATION?