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
|
Add token and expiration fields to help recover forgotten passwords
|
||||||
"""
|
"""
|
||||||
database['users'].update(
|
database['users'].update(
|
||||||
{'fp_token': {'$exists': False}},
|
{'fp_verification_key': {'$exists': False}},
|
||||||
{'$set': {'fp_token': ''}},
|
{'$set': {'fp_verification_key': ''}},
|
||||||
multi=True)
|
multi=True)
|
||||||
database['users'].update(
|
database['users'].update(
|
||||||
{'fp_token_expire': {'$exists': False}},
|
{'fp_token_expire': {'$exists': False}},
|
||||||
|
@ -78,7 +78,7 @@ class User(Document):
|
|||||||
'url' : unicode,
|
'url' : unicode,
|
||||||
'bio' : unicode, # May contain markdown
|
'bio' : unicode, # May contain markdown
|
||||||
'bio_html': unicode, # May contain plaintext, or HTML
|
'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
|
'fp_token_expire': datetime.datetime
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user