Skip to content

Commit 06c6c95

Browse files
6543fsologureng
andauthored
Apply suggestions from code review
Co-authored-by: Felipe Leopoldo Sologuren Gutiérrez <[email protected]>
1 parent 773f07e commit 06c6c95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

custom/conf/app.example.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ ROUTER = console
696696
;; Enable captcha validation for registration
697697
;ENABLE_CAPTCHA = false
698698
;;
699-
;; Type of captcha you want to use. Options: image, recaptcha, hcaptcha
699+
;; Type of captcha you want to use. Options: image, recaptcha, hcaptcha, mcaptcha.
700700
;CAPTCHA_TYPE = image
701701
;;
702702
;; Change this to use recaptcha.net or other recaptcha service

routers/web/auth/openid.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ func RegisterOpenIDPost(ctx *context.Context) {
406406
ctx.ServerError("", err)
407407
return
408408
}
409-
valid, err = hcaptcha.Verify(ctx, form.HcaptchaResponse)
409+
valid, err = mcaptcha.Verify(ctx, form.McaptchaResponse)
410410
default:
411411
ctx.ServerError("Unknown Captcha Type", fmt.Errorf("Unknown Captcha Type: %s", setting.Service.CaptchaType))
412412
return

0 commit comments

Comments
 (0)