mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 10:53:09 -06:00
Pass error when validation fails
This commit is contained in:
parent
d9b80305d4
commit
0ae9bd5fc8
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue