aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/auth
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2011-11-14 19:01:26 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2011-12-05 21:08:57 +0100
commit7a3d00ec217cc3fd44788b9d8c63ab9f7b1d05a7 (patch)
treef79d338eef9f3713d1b5c4f6e1a1a2e0f5c4cb73 /mediagoblin/auth
parent4facc7a0a21a57023f0d3707f1a3483ca7a560c8 (diff)
downloadmediagoblin-7a3d00ec217cc3fd44788b9d8c63ab9f7b1d05a7.tar.lz
mediagoblin-7a3d00ec217cc3fd44788b9d8c63ab9f7b1d05a7.tar.xz
mediagoblin-7a3d00ec217cc3fd44788b9d8c63ab9f7b1d05a7.zip
Dot-Notation for Users.status
Diffstat (limited to 'mediagoblin/auth')
-rw-r--r--mediagoblin/auth/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py
index 2d29d0a5..caf9835a 100644
--- a/mediagoblin/auth/views.py
+++ b/mediagoblin/auth/views.py
@@ -167,7 +167,7 @@ def verify_email(request):
{'_id': ObjectId(unicode(request.GET['userid']))})
if user and user['verification_key'] == unicode(request.GET['token']):
- user[u'status'] = u'active'
+ user.status = u'active'
user.email_verified = True
user[u'verification_key'] = None
@@ -249,7 +249,7 @@ def forgot_password(request):
{'email': request.POST['username']})
if user:
- if user.email_verified and user['status'] == 'active':
+ if user.email_verified and user.status == 'active':
user[u'fp_verification_key'] = unicode(uuid.uuid4())
user[u'fp_token_expire'] = datetime.datetime.now() + \
datetime.timedelta(days=10)
@@ -304,7 +304,7 @@ def verify_forgot_password(request):
if ((user and user['fp_verification_key'] and
user['fp_verification_key'] == unicode(formdata_token) and
datetime.datetime.now() < user['fp_token_expire']
- and user.email_verified and user['status'] == 'active')):
+ and user.email_verified and user.status == 'active')):
cp_form = auth_forms.ChangePassForm(formdata_vars)