Keep Last changed text.

Update user test data to include the password_changed_at attribute.
This commit is contained in:
Rebecca Law
2016-06-28 10:40:39 +01:00
parent 7d64b77e5d
commit de42391afa
2 changed files with 11 additions and 7 deletions

View File

@@ -14,7 +14,7 @@
{'label': 'Name', 'value': current_user.name, 'url': url_for('.user_profile_name')},
{'label': 'Email address', 'value': current_user.email_address, 'url': url_for('.user_profile_email')},
{'label': 'Mobile number', 'value': current_user.mobile_number, 'url': url_for('.user_profile_mobile_number')},
{'label': 'Password', 'value': current_user.password_changed_at |format_datetime_short, 'url': url_for('.user_profile_password')},
{'label': 'Password', 'value': 'Last changed ' + current_user.password_changed_at |format_datetime_short, 'url': url_for('.user_profile_password')},
],
caption='Account settings',
field_headings=['Setting', 'Value', 'Link to change'],