mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 19:33:09 -06:00
Removed check for recaptcha
This commit is contained in:
parent
78db1b3dce
commit
9d70a131a0
|
|
@ -185,14 +185,7 @@ func checkRecaptchaEnabled(
|
||||||
w http.ResponseWriter,
|
w http.ResponseWriter,
|
||||||
req *http.Request,
|
req *http.Request,
|
||||||
) *util.JSONResponse {
|
) *util.JSONResponse {
|
||||||
if cfg.Matrix.RecaptchaEnabled {
|
if !cfg.Matrix.RecaptchaEnabled {
|
||||||
if cfg.Matrix.RecaptchaPublicKey == "" {
|
|
||||||
return writeErrorMessage(w, req,
|
|
||||||
"This Homeserver doesn't have a recaptcha public key",
|
|
||||||
http.StatusInternalServerError,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return writeErrorMessage(w, req,
|
return writeErrorMessage(w, req,
|
||||||
"Recaptcha login is disabled on this Homeserver",
|
"Recaptcha login is disabled on this Homeserver",
|
||||||
http.StatusBadRequest,
|
http.StatusBadRequest,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue