From dc2c527ce9618660f8f2c7e8947b528d06418a28 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 29 Apr 2016 12:07:54 +0100 Subject: Fix password reset Default requester to None, otherwise it isn't defined when resetting using email auth --- synapse/rest/client/v2_alpha/account.py | 1 + 1 file changed, 1 insertion(+) (limited to 'synapse/rest') diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py index 7f8a6a4cf7..c88c270537 100644 --- a/synapse/rest/client/v2_alpha/account.py +++ b/synapse/rest/client/v2_alpha/account.py @@ -52,6 +52,7 @@ class PasswordRestServlet(RestServlet): defer.returnValue((401, result)) user_id = None + requester = None if LoginType.PASSWORD in result: # if using password, they should also be logged in -- cgit 1.4.1