mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 10:53: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,
|
||||
req *http.Request,
|
||||
) *util.JSONResponse {
|
||||
if cfg.Matrix.RecaptchaEnabled {
|
||||
if cfg.Matrix.RecaptchaPublicKey == "" {
|
||||
return writeErrorMessage(w, req,
|
||||
"This Homeserver doesn't have a recaptcha public key",
|
||||
http.StatusInternalServerError,
|
||||
)
|
||||
}
|
||||
} else {
|
||||
if !cfg.Matrix.RecaptchaEnabled {
|
||||
return writeErrorMessage(w, req,
|
||||
"Recaptcha login is disabled on this Homeserver",
|
||||
http.StatusBadRequest,
|
||||
|
|
|
|||
Loading…
Reference in a new issue