Nicholas Staples
af500a96e7
Update all dates to use utc, only in the template is it converted to british time.
2016-05-11 11:20:45 +01:00
Nicholas Staples
3865c722fc
Updated notifications_utils version and associated code. Added email subject formatting for placeholders.
2016-04-14 12:00:55 +01:00
Rebecca Law
e735d772fe
Added a test to check that the password is updated when the password exists in the session object on the two-factor page.
2016-03-08 14:58:29 +00:00
Rebecca Law
3e969b3640
Re-implement forgot password
2016-03-07 18:18:52 +00:00
Chris Hill-Scott
9cf6dfa6f2
Tidy up inconsistencies in forms
...
Wherever possible, use the macros.
2016-02-01 16:55:46 +00:00
Nicholas Staples
2d35f5f36a
All tests passing and merged with master.
2016-01-27 16:30:33 +00:00
Nicholas Staples
6959d695d3
Working tests, hopefully all code changes done.
2016-01-27 12:22:32 +00:00
Adam Shimali
4674bd6b68
Reintroduce some tests. A bit of cleanup of mocks.
...
User object fields made a bit clearer and simple test to
verify user added.
2016-01-23 23:14:50 +00:00
Adam Shimali
856b6adb56
First slice full sign in flow
2016-01-21 11:33:53 +00:00
Adam Shimali
ca3d3240a6
Verify activate and login user with sms and email code
2016-01-20 15:34:42 +00:00
Nicholas Staples
4e2019c949
Work in progress, all tests passing and implemented mocks for services_dao.
2016-01-15 17:46:09 +00:00
Nicholas Staples
3b1d521c10
Tests added for dao.
2016-01-15 15:15:35 +00:00
Nicholas Staples
d42ee85f93
Added new notification-python-client removed check on old one, fixed tests, live service will be broken.
2016-01-14 14:55:07 +00:00
Rebecca Law
05695a1c03
Updated generate_token to use encrypt the entire url.
...
Created notify_client.sender to hold the methods to send notifications.
2016-01-11 15:18:37 +00:00
Rebecca Law
bb1db0c345
When the user request a reset password link, the user.state is set to request_password_reset.
...
Which means the user will only be able to reset their password, and not sign-in.
Once the user resets the password the user state is set to active once more.
If the link is used a second time they will be redirected to the index page with a message
that the link in the email is not longer valid.
2016-01-11 12:23:08 +00:00
Rebecca Law
c858869a52
Removed exceptions, found a better way to handle them.
...
Refactored the forms so that fields like email_address can be used in multiple forms.
Refactored form validation so that a query function is passed into the form to be run, this
way the form is not exposed to the dao layer and the query is more efficient.
This PR still requires some frontend attention. Will work with Chris to update the templates.
2016-01-11 12:23:08 +00:00
Rebecca Law
f951b364ac
Actually use the mock in the test
2016-01-11 12:23:07 +00:00
Rebecca Law
eb78a77808
Added the mock for the admin_api_client
2016-01-11 12:23:07 +00:00
Rebecca Law
35619553c8
Added NoDataFoundException
2016-01-11 12:23:07 +00:00
Rebecca Law
a860f713d2
Implementation of the new_password endpoint.
...
Found a way to create the token that does not need to persist it to the database.
This requires proper error messages, written by people who speak menglis good.
2016-01-11 12:23:07 +00:00
Rebecca Law
b5901a1ac7
New-password endpoints are implemented.
...
There should be a better way to validate the token.
2016-01-11 12:23:07 +00:00