Chris Hill-Scott
034c70bc97
Add a banner ✔
2016-01-05 13:31:54 +00:00
Chris Hill-Scott
aa0663cad8
Add messages to the current job’s history
...
This mocks out a data structure for a job’s messages, and renders this data:
- on the notification page, as a table, which links through to…
- …the page for an indidivual message
2016-01-05 13:31:53 +00:00
Rebecca Law
1fd6ce9fe4
fix codestyle
2016-01-05 12:40:01 +00:00
Rebecca Law
931c6b2809
Add debugging to find issue.
2016-01-05 12:35:36 +00:00
Rebecca Law
785c413cde
Move and rename macro.html
...
Remove print statements
Fix code style
2016-01-04 15:50:26 +00:00
Rebecca Law
ac05f6931e
Refactor add-service form such that the dao is not exposed in the forms.
2016-01-04 15:31:50 +00:00
Rebecca Law
b2f544a165
110880218: Completed implementation of resend the verificaton code
2015-12-31 13:16:59 +00:00
Rebecca Law
fb5e80e0d4
110880218: Implementation to resend the verification code.
...
Added implementation for GET/POST for the /verification-not-received endpoint.
2015-12-31 11:13:42 +00:00
Rebecca Law
fe8a1a10c5
109898688: Refactor the validate codes logic to be more susinct and easier to read.
2015-12-17 15:09:12 +00:00
Rebecca Law
010be66d31
109898688: Complete the implementation of the did not receive code.
2015-12-17 14:33:20 +00:00
Rebecca Law
64812c1614
109898688: All codes are valid until one code is used, then they are all marked used.
...
Fixed the is_active() method on the Users model, if the user was pending they would come back as active, allowing a user to sign in before being active.
There is still a problem with the validate_sms_code and validate_email_code method.
2015-12-17 14:33:20 +00:00
Rebecca Law
bd8bb3c926
109898688: Implementation of text-not-received and email-not-received
2015-12-17 14:33:20 +00:00
Rebecca Law
e9383b733e
109898688: Implement get method for email-not-received and text-not-received
2015-12-17 14:33:20 +00:00
Rebecca Law
eb0cff18c5
110067722: Add form validation for duplicate service name.
2015-12-15 10:32:26 +00:00
Rebecca Law
23b5cffbe8
110067722: Update template with the form.
2015-12-15 10:32:26 +00:00
Rebecca Law
43f2605ac4
110067722: Post add-service endpoint saves the service and maps it to the user.
2015-12-15 10:32:26 +00:00
Rebecca Law
350ccda208
110067722: Added endpoints for add-service
...
Post is not complete as of yet.
2015-12-15 10:32:25 +00:00
Rebecca Law
4b01335703
110067722: Create the model and dao for services.
...
This commit creates the data model for services and user_to_service.
The dao is also created to insert, get, activate, and unrestrict the service.
2015-12-15 10:31:27 +00:00
minglis
e133baa6b3
Merge pull request #26 from alphagov/persis_verify_codes
...
Persis verify codes
2015-12-14 14:56:28 +00:00
Rebecca Law
caabda92e0
Test for VerifyForm and TwoFactorForm
2015-12-14 14:09:29 +00:00
Rebecca Law
295dbeb7d1
Create unit tests that test the forms.
2015-12-14 13:25:27 +00:00
Rebecca Law
c0550d2c61
Refactor unit tests
2015-12-14 13:25:27 +00:00
Chris Hill-Scott
d2562889b8
Replace CSV preview with rendered messages
...
If there are less than 7 messages, show them all.
If there are more than 7, show the first and last three, and a link to the
remaining x.
2015-12-11 14:02:42 +00:00
Chris Hill-Scott
4c14e273c2
Try out previewing messages
2015-12-11 12:02:21 +00:00
Chris Hill-Scott
8a34fa7e0a
Use Flask for routing
...
This commit:
- replaces links that look like buttons with forms and submit buttons
- splits the view code for SMS into its own file
- moves the routing into the Python by adding handling for `post` requests
- uses Flask’s `url_for` to generate URLs, rather than hard coding them (so that
it’s easier to change the URLs)
- chages the URLs for sending text messages
2015-12-11 09:49:38 +00:00
Chris Hill-Scott
dbc55e76b0
Add table of recipients
...
Uses an adapted version of the 'summary table' pattern from Digital Marketplace
frontend toolkit:
http://alphagov.github.io/digitalmarketplace-frontend-toolkit/summary-table.html
2015-12-11 09:49:38 +00:00
Chris Hill-Scott
1f39a0fe61
Hard code some data in the Python
...
This commit adds some stubbed data for the pages. The structure of the data
is just a proposal, but it gives the templates something to work with for now.
2015-12-11 09:48:59 +00:00
Chris Hill-Scott
2f980ab622
Move all pages into their own directory
...
There are a lot of pages. It seems like a good idea to keep them in one place,
so they don’t get mixed up with partials and layouts.
2015-12-11 09:48:52 +00:00
Rebecca Law
1ce8170ce1
109526036:Mark the sms code as being used on the two-factor page
2015-12-10 16:38:34 +00:00
Rebecca Law
bbecc03531
109526036: Fix bug.
...
If one of the codes was invalid and one was valid on the verify page the valid code would be marked as used.
2015-12-10 16:34:29 +00:00
Rebecca Law
2b4097dd2d
109526036: Updates as per comments made on pull request.
2015-12-10 15:21:06 +00:00
Rebecca Law
20fa259316
109526036: Removed sms code from the session on sign-in
2015-12-10 14:51:20 +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
minglis
3b327c9986
Merge pull request #22 from alphagov/implement_two_factor
...
Implement two factor
2015-12-09 14:20:29 +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
Pete Herlihy
a357fea7af
Added route to the edit template page [ci skip]
2015-12-09 10:50:01 +00:00
Pete Herlihy
b5f0fc3012
Added route to the manage templates page [ci skip]
2015-12-09 10:49:05 +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
c946f85f9d
109638656: Send sms code from sign-in post.
2015-12-09 10:16:30 +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
56db1ad400
109526520: fix code style
2015-12-09 10:12:21 +00:00
Rebecca Law
6d47c01117
109526520: Implememt verify post method.
2015-12-09 10:12:20 +00:00
Rebecca Law
69da9f8f32
109526520: render verify template with VerifyForm
2015-12-09 10:12:20 +00:00
Rebecca Law
60ed0c541b
Remove the temporary endpoint to create users.
2015-12-08 09:03:48 +00:00
Rebecca Law
2935485977
108537814: Set session expiry to 1 hour
2015-12-04 16:27:11 +00:00