From 0ae9bd5fc85d5677d0bae834eca4ea5e1b3a1cba Mon Sep 17 00:00:00 2001 From: Parminder Singh Date: Sun, 4 Aug 2019 20:03:16 +0530 Subject: [PATCH] Pass error when validation fails --- clientapi/routing/auth_fallback.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clientapi/routing/auth_fallback.go b/clientapi/routing/auth_fallback.go index ab6cc5f6a..59be822ca 100644 --- a/clientapi/routing/auth_fallback.go +++ b/clientapi/routing/auth_fallback.go @@ -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