-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Account linking does not work if only external registration is allowed #8589
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
Comments
I encountered a similar issue, but I don't think it is related to the ALLOW_ONLY_EXTERNAL_REGISTRATION (we didn't have this option set on our server).
Here are the screen-shots showing p. 1, 4 and 5 We use version 1.9.3 of Gitea Server. I tried to reproduce it on https://try.gitea.io/ by logging in with GitHub, but there it works correctly (however, once I got a 500 error). |
In your case ALLOW_ONLY_EXTERNAL_REGISTRATION is not set, but are you using the REQUIRE_EXTERNAL_REGISTRATION_CAPTCHA option? |
I answer on behalf of @jkocot. We set: If I set |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
I don't think this issue has been resolved yet. Any further comments @hsiejkowski, @jkocot ? |
For us this works as expected, so we have no further comments. |
If I understand correctly you enabled the Captcha option and the password field is shown? |
To test it once again I disabled captcha on gitea 1.10.2 and the password field is visible. Regardless if ALLOW_ONLY_EXTERNAL_REGISTRATION is set to false or true. |
I found pull request #9150, which deals with this issue. So I will comment again once I've done the update. |
Okay, so after the update from 1.10 to 1.10.2 everything is working as expected. I'll close the issue. |
Uh oh!
There was an error while loading. Please reload this page.
[x]
):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.
gitea/routers/user/auth.go
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?
Screenshots
The text was updated successfully, but these errors were encountered: