-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
hCaptcha failed to initialize on link registration page #14766
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
It would be helpful to tell us what the developer tools console says... |
zeripath
added a commit
to zeripath/gitea
that referenced
this issue
Feb 28, 2021
When using HCaptcha on link account pages the site key needs to be passed in. This PR ensures that HCaptchaSiteKey is set in the data. Fix go-gitea#14766 Signed-off-by: Andrew Thornton <[email protected]>
techknowlogick
added a commit
that referenced
this issue
Feb 28, 2021
When using HCaptcha on link account pages the site key needs to be passed in. This PR ensures that HCaptchaSiteKey is set in the data. Fix #14766 Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: techknowlogick <[email protected]>
zeripath
added a commit
to zeripath/gitea
that referenced
this issue
Mar 1, 2021
Backport go-gitea#14834 When using HCaptcha on link account pages the site key needs to be passed in. This PR ensures that HCaptchaSiteKey is set in the data. Fix go-gitea#14766 Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: techknowlogick <[email protected]>
6543
pushed a commit
that referenced
this issue
Mar 1, 2021
Backport #14834 When using HCaptcha on link account pages the site key needs to be passed in. This PR ensures that HCaptchaSiteKey is set in the data. Fix #14766 Signed-off-by: Andrew Thornton <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Using hCaptcha as captcha type, for all new users to register an inline hCaptcha element is displayed and needs to be solved by the user. This works well on the standard register page (
/user/sign_up
).When using a linked login, e.g. login through Github and then trying to link the Github account with a new Gitea user to be registered, the hCaptcha element is not loaded because it cannot be initialized. Trying to complete the registration therefore fails because of not solved captcha.
Screenshots
Login via external method
Before registration on Gitea, first login via Github. Then select Register new account on the resulting page to link a new Gitea account with Github (

/user/link_account
). The inline hCaptcha element cannot initialize:Registration fails
Just trying to complete the registration of course fails:

Expectation
I expect the hCaptcha element to load on both pages,
/user/sign_up
and/user/link_account
. The latter is a specific case to register just using an external login and create a linked Gitea account without password. Nonetheless it should also work with hCaptcha and use the same hCaptcha credentials / keys as on the standard registration page.The text was updated successfully, but these errors were encountered: