-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add support mCaptcha as captcha provider #20458
Conversation
Gusted
commented
Jul 22, 2022
- There's a deep motivation for this pull request that requires some explanation(feel free to skip reading this). In recent events, it was once again pointed out that Codeberg is using a captcha that isn't accessible to blind and visually impaired people, currently Gitea doesn't offer a captcha that is accessible to those kind of people. After a public meeting was hold by Codeberg to discuss the issue and look into solutions, I came to a conclusion that mCaptcha is a good solution to solve Codeberg's accessibility problem. So therefor this PR.
- This PR adds a fourth captcha type, mCaptcha. It uses a small library to interact with the mCaptcha instance. The javascript code uses the official glue code (vanilla-variant) provided by mCaptcha themselves. The remaining code is basically boilerplate that also exists for the other captchas.
I don't understand though... I thought the point of mCaptcha was that it was supposed to be a drop-in replacement for recaptcha/hcaptcha? Can't you just put an mCaptcha url in as the recaptcha url? xCaptcha drop-in replacementAlready using a captcha solution? No worries, our APIs are compatible with reCaptcha and hCaptcha! |
If not can we change our recaptcha and/or hcaptcha modules to make them a little more configurable so that they could handle mCaptcha or whatever other captcha solution comes in the future? |
The website is out of date. I started out with the goal of building an identitical interface but hCaptcha and reCAPTCHA APIs have attributes that are irrelevant for mCaptcha. Current interface is similar but not identitical. Will update the website this week. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Co-authored-by: Felipe Leopoldo Sologuren Gutiérrez <fsologureng@users.noreply.github.com>
- Still requires patch on mCaptcha's side to provide good iframe settings & good CSS on widget HTML.
Blocked by mCaptcha/glue#12 & mCaptcha/mCaptcha#35 |
https://mcaptcha.org/ Co-authored-by: Felipe Leopoldo Sologuren Gutiérrez <fsologureng@users.noreply.github.com>
* giteaofficial/main: Use separate class for tippy targets (go-gitea#20742) Add support mCaptcha as captcha provider (go-gitea#20458)