- Remove password_changed_at from the update_dict in users_dao

- Format dates in UserSchema
- Properly formatted subject and message body for the password reset email
- Add name to the message for reset password
This commit is contained in:
Rebecca Law
2016-03-08 14:33:06 +00:00
parent 5c4ac9d938
commit ba337374fd
5 changed files with 21 additions and 4 deletions

View File

@@ -210,6 +210,7 @@ def send_user_reset_password():
return _user_not_found_for_email()
reset_password_message = {'to': user_to_send_to.email_address,
'name': user_to_send_to.name,
'reset_password_url': _create_reset_password_url(user_to_send_to.email_address)}
email_reset_password.apply_async([encryption.encrypt(reset_password_message)], queue='email-reset-password')