oops, uses Alejandro's fp_verification_key. my bad.
This commit is contained in:
parent
25ba955e20
commit
6503073508
@ -100,8 +100,8 @@ def user_add_forgot_password_token_and_expires(database):
|
||||
Add token and expiration fields to help recover forgotten passwords
|
||||
"""
|
||||
database['users'].update(
|
||||
{'fp_token': {'$exists': False}},
|
||||
{'$set': {'fp_token': ''}},
|
||||
{'fp_verification_key': {'$exists': False}},
|
||||
{'$set': {'fp_verification_key': ''}},
|
||||
multi=True)
|
||||
database['users'].update(
|
||||
{'fp_token_expire': {'$exists': False}},
|
||||
|
@ -78,7 +78,7 @@ class User(Document):
|
||||
'url' : unicode,
|
||||
'bio' : unicode, # May contain markdown
|
||||
'bio_html': unicode, # May contain plaintext, or HTML
|
||||
'fp_token': unicode, # forgotten password verification key
|
||||
'fp_verification_key': unicode, # forgotten password verification key
|
||||
'fp_token_expire': datetime.datetime
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user