summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/account.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-04-29 12:07:54 +0100
committerDavid Baker <dave@matrix.org>2016-04-29 12:07:54 +0100
commitdc2c527ce9618660f8f2c7e8947b528d06418a28 (patch)
treed8b18c74881460e860a5b9f17fa5a5df3c3606e7 /synapse/rest/client/v2_alpha/account.py
parentFix more typos in per-request metrics (diff)
downloadsynapse-dc2c527ce9618660f8f2c7e8947b528d06418a28.tar.xz
Fix password reset
Default requester to None, otherwise it isn't defined when resetting using email auth
Diffstat (limited to 'synapse/rest/client/v2_alpha/account.py')
-rw-r--r--synapse/rest/client/v2_alpha/account.py1
1 files changed, 1 insertions, 0 deletions
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