Rebecca Law
c0550d2c61
Refactor unit tests
2015-12-14 13:25:27 +00:00
Rebecca Law
2b4097dd2d
109526036: Updates as per comments made on pull request.
2015-12-10 15:21:06 +00:00
Rebecca Law
588730d594
109526036: Persist the verify code to the db.
...
The codes are hashed and saved to the db.
The code is marked as used once a valid code is submitted.
The code is valid for 1 hour.
The codes are no longer saved to the session.
2015-12-10 14:48:01 +00:00
Rebecca Law
9ba229820a
109638656: Implementation of two factor verification
...
Validation of the code is done in the form, when the form.validate_on_submit is called the validate code methods are called as well.
2015-12-09 11:36:57 +00:00
Rebecca Law
1af2dd5e98
109638656: Use Regex validator for sms code to ensure it is 5 digits.
2015-12-09 10:17:50 +00:00
Rebecca Law
2e59870490
109638656: Implement two factor verify flow
...
When user enters valid sms code they are redirected to the dashboard.
Otherwise, form errors are present.
2015-12-09 10:17:09 +00:00
Rebecca Law
eae2756a5e
109638656: Initial implementation for two-factor
2015-12-09 10:15:41 +00:00
Rebecca Law
ae19161b32
109526520: Use Regex validator to test the code is 5 digits.
2015-12-09 10:12:21 +00:00
Rebecca Law
9923c14e73
109526520: Changed the code form fields to StringField
...
When the codes were IntegerFields and the code started with zero, the zero was trimmed, resulting in a failed match.
2015-12-09 10:12:21 +00:00
Rebecca Law
bef2258803
109526520: Add custom validators for the VerifyForm
...
If the email_code or sms_code entered does not pass check password, then add errors to the form.
2015-12-09 10:12:21 +00:00
Rebecca Law
16618e80f9
109526520: Implement verify flow
...
When a person registers with a valid mobile number and email address,
a code will be sent to each. That person can enter the verify codes and continue to the add-service page.
2015-12-09 10:12:21 +00:00
Rebecca Law
69da9f8f32
109526520: render verify template with VerifyForm
2015-12-09 10:12:20 +00:00
minglis
abd344fc57
Merge pull request #12 from alphagov/blacklist_password
...
Blacklist password
2015-12-04 15:53:13 +00:00
Lorena Sutherland
571f09881e
Amend name & password labels
2015-12-02 15:23:03 +00:00
Lorena Sutherland
058d7c5f96
Change password label
2015-12-02 13:57:03 +00:00
Rebecca Law
3b96b6e5ca
108536374: Implement a validator to exclude passwords on a blacklist
2015-12-01 16:45:11 +00:00
Rebecca Law
64d2cbb927
108536366: Implement register flow
...
Includes validation for gov.uk email address, mobile number with +44, password at least 10 char.
Form validation errors will be added to template in a later story.
User is created when form validates.
2015-12-01 16:41:49 +00:00
Rebecca Law
48b7a7dc37
108536490: Adding the login manager and csrf token.
...
Still need to figure out how to override the load_user method, currently it is not working.
2015-12-01 10:00:06 +00:00
Rebecca Law
7f96ef5a25
108536490: Initial effort to implement log in
...
Add endpoint for post to /sign-in
Initialise role data
2015-12-01 10:00:06 +00:00