diff options
author | Gusted <williamzijl7@hotmail.com> | 2022-08-10 13:20:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 15:20:10 +0200 |
commit | 58de07e5fd14c23dd4c4a315b8c5b3fb3219f66a (patch) | |
tree | cec2e02c494e19a42bc6095c480d93354259b669 /services | |
parent | 452272c0384d7033ffde18bcb1167e8e49ff598c (diff) | |
download | gitea-58de07e5fd14c23dd4c4a315b8c5b3fb3219f66a.tar.gz gitea-58de07e5fd14c23dd4c4a315b8c5b3fb3219f66a.zip |
Add support mCaptcha as captcha provider (#20458)
https://mcaptcha.org/
Co-authored-by: Felipe Leopoldo Sologuren GutiƩrrez <fsologureng@users.noreply.github.com>
Diffstat (limited to 'services')
-rw-r--r-- | services/forms/user_form.go | 1 | ||||
-rw-r--r-- | services/forms/user_form_auth_openid.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/services/forms/user_form.go b/services/forms/user_form.go index c8f2b02d8c..8ce1d85c57 100644 --- a/services/forms/user_form.go +++ b/services/forms/user_form.go @@ -96,6 +96,7 @@ type RegisterForm struct { Retype string GRecaptchaResponse string `form:"g-recaptcha-response"` HcaptchaResponse string `form:"h-captcha-response"` + McaptchaResponse string `form:"m-captcha-response"` } // Validate validates the fields diff --git a/services/forms/user_form_auth_openid.go b/services/forms/user_form_auth_openid.go index fd3368d303..992517f34f 100644 --- a/services/forms/user_form_auth_openid.go +++ b/services/forms/user_form_auth_openid.go @@ -31,6 +31,7 @@ type SignUpOpenIDForm struct { Email string `binding:"Required;Email;MaxSize(254)"` GRecaptchaResponse string `form:"g-recaptcha-response"` HcaptchaResponse string `form:"h-captcha-response"` + McaptchaResponse string `form:"m-captcha-response"` } // Validate validates the fields |