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}},
'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
}