From 25af3f96c6a5c30700b350001988cd9b1591c6d8 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Thu, 6 Jun 2019 15:22:22 +0100 Subject: Fix clientip bug --- synapse/handlers/auth.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py index aa6cdce38c..96f4521dcd 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py @@ -389,8 +389,13 @@ class AuthHandler(BaseHandler): clientip=clientip, password_servlet=password_servlet, ) + elif login_type == LoginType.RECAPTCHA: + res = yield checker( + authdict, + clientip, + ) else: - res = yield checker(authdict, clientip=clientip) + res = yield checker(authdict) defer.returnValue(res) # build a v1-login-style dict out of the authdict and fall back to the -- cgit 1.5.1