diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2019-06-06 15:22:22 +0100 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2019-06-06 15:22:22 +0100 |
commit | 25af3f96c6a5c30700b350001988cd9b1591c6d8 (patch) | |
tree | 7efa2daddad5cfc9e44e372b3fe0523287b541a2 | |
parent | lint (diff) | |
download | synapse-25af3f96c6a5c30700b350001988cd9b1591c6d8.tar.xz |
Fix clientip bug
-rw-r--r-- | synapse/handlers/auth.py | 7 |
1 files changed, 6 insertions, 1 deletions
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 |