From 05c403351791b9f3969e01560d68ecc211cf7e31 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 29 Feb 2016 01:22:10 +0100 Subject: lost_password: Fix confirmation All confirmations return tuple with the data. --- accounts/views/default/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(): -- cgit v1.2.3-1-g7c22