Dot-Notation for Users.pw_hash

This commit is contained in:
Elrond
2011-11-14 18:49:21 +01:00
parent 809cbfc5ab
commit 9047b254f3
4 changed files with 6 additions and 6 deletions

View File

@@ -96,7 +96,7 @@ class User(Document):
See if a user can login with this password
"""
return auth_lib.bcrypt_check_password(
password, self['pw_hash'])
password, self.pw_hash)
class MediaEntry(Document):