summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@vm-accounts.spline.inf.fu-berlin.de>2016-02-29 01:22:10 +0100
committerroot <root@vm-accounts.spline.inf.fu-berlin.de>2016-02-29 01:22:10 +0100
commit05c403351791b9f3969e01560d68ecc211cf7e31 (patch)
treeed385c98e312f1ec45093f2eda8bd13d28973fa9
parent80f6ad24fd57410f6231a1b7de0ac610adf098e4 (diff)
downloadweb-05c403351791b9f3969e01560d68ecc211cf7e31.tar.gz
web-05c403351791b9f3969e01560d68ecc211cf7e31.tar.bz2
web-05c403351791b9f3969e01560d68ecc211cf7e31.zip
lost_password: Fix confirmation
All confirmations return tuple with the data.
-rw-r--r--accounts/views/default/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/views/default/__init__.py b/accounts/views/default/__init__.py
index 68938c1..9aba6e8 100644
--- a/accounts/views/default/__init__.py
+++ b/accounts/views/default/__init__.py
@@ -98,7 +98,7 @@ def lost_password():
@templated('lost_password_complete.html')
@logout_required
def lost_password_complete(token):
- username = Confirmation('lost_password').loads_http(token, max_age=4*60*60)
+ (username,) = Confirmation('lost_password').loads_http(token, max_age=4*60*60)
form = RegisterCompleteForm()
if form.validate_on_submit():