diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-11-14 18:49:21 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-12-05 21:08:57 +0100 |
commit | 9047b254f340c16f33183f0d6d68e6c4a5a3c8de (patch) | |
tree | 7cbbd7836840e356681f02a41a067a8cb5ea7ded /mediagoblin/auth/views.py | |
parent | 809cbfc5ab3c999f357c0b4e7b6c89e8a36dc6d2 (diff) | |
download | mediagoblin-9047b254f340c16f33183f0d6d68e6c4a5a3c8de.tar.lz mediagoblin-9047b254f340c16f33183f0d6d68e6c4a5a3c8de.tar.xz mediagoblin-9047b254f340c16f33183f0d6d68e6c4a5a3c8de.zip |
Dot-Notation for Users.pw_hash
Diffstat (limited to 'mediagoblin/auth/views.py')
-rw-r--r-- | mediagoblin/auth/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py index f8e84285..63bf9a91 100644 --- a/mediagoblin/auth/views.py +++ b/mediagoblin/auth/views.py @@ -82,7 +82,7 @@ def register(request): user = request.db.User() user.username = username user.email = email - user['pw_hash'] = auth_lib.bcrypt_gen_password_hash( + user.pw_hash = auth_lib.bcrypt_gen_password_hash( request.POST['password']) user.save(validate=True) @@ -309,7 +309,7 @@ def verify_forgot_password(request): cp_form = auth_forms.ChangePassForm(formdata_vars) if request.method == 'POST' and cp_form.validate(): - user[u'pw_hash'] = auth_lib.bcrypt_gen_password_hash( + user.pw_hash = auth_lib.bcrypt_gen_password_hash( request.POST['password']) user[u'fp_verification_key'] = None user[u'fp_token_expire'] = None |