Removed check for recaptcha

This commit is contained in:
Parminder Singh 2019-08-14 21:11:17 +05:30
parent 78db1b3dce
commit 9d70a131a0

View file

@ -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,