Pass error when validation fails

This commit is contained in:
Parminder Singh 2019-08-04 20:03:16 +05:30
parent d9b80305d4
commit 0ae9bd5fc8

View file

@ -162,8 +162,8 @@ func AuthFallback(
response := req.Form.Get("g-recaptcha-response")
if err := validateRecaptcha(&cfg, response, clientIP); err != nil {
serveRecaptcha()
return nil
util.GetLogger(req.Context()).Error(err)
return err
}
// Success. Add recaptcha as a completed login flow