Nicholas Staples
48daac7b94
Merging conflict with two_factor.py
...
Fixed merge mistake with two_factor.py.
2016-03-30 10:11:06 +01:00
Nicholas Staples
644336b151
Merge with master.
2016-03-29 22:50:40 +01:00
Rebecca Law
b9528d49c4
Merge branch 'master' into platform-admin
2016-03-21 15:37:35 +00:00
Adam Shimali
792b42017a
Revert "In registration flow If new sms requested then check and send redirected to two factor"
2016-03-21 13:44:53 +00:00
Rebecca Law
8ab4a5b150
Merge branch 'master' into platform-admin
...
Conflicts:
tests/app/main/views/test_dashboard.py
2016-03-21 13:23:46 +00:00
Adam Shimali
c2c98248a1
If new sms requested, then check and send redirected to two factor
...
in all cases but should have redirected to verify for pending users.
2016-03-21 12:32:07 +00:00
Rebecca Law
d003dc4aa9
[WIP]: fixing unit tests
2016-03-18 10:49:22 +00:00
Adam Shimali
8561391cd2
The verify view was not passing along the next param to the two factor
...
view.
Now if it is passed and it is a url on the same domain that request
originates from then it is used.
2016-03-14 16:58:39 +00:00
Rebecca Law
29ddad60e7
Merge branch 'master' into forgot-password
...
Conflicts:
app/main/views/two_factor.py
2016-03-08 15:03:25 +00: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
Martyn Inglis
5429107f93
Removed remember me checkbox
...
- remember me functionality always applied.
2016-03-07 14:39:20 +00:00
Nicholas Staples
c959678c49
Remember me functionality added and tested.
...
Merge extra.
Fixed comment.
2016-02-24 17:32:15 +00:00
Chris Hill-Scott
939954cd64
Skip ‘choose service’ page if user has one service
...
We used to do this by redirecting on the choose service page. However when we
lost the dropdown and this page also became the page for adding a new service
(in 3617f2e936 ) the redirect was removed.
This commit re-adds the redirect on the two factor page, so that it only happens
on first login.
So the flows are:
**Multiple services**
```
`Sign in` → `Enter two factor code` → `Choose service` → `Service dashboard`
```
**One service**
```
`Sign in` → `Enter two factor code` → `Service dashboard`
```
**No services (you’ve deleted all your services)**
`Sign in` → `Enter two factor code` → `Choose service` → `Add new service`
2016-02-05 14:50:55 +00:00
Rebecca Law
0dd20abbb3
Replace Current service with chosen service name.
2016-01-28 17:20:34 +00:00
Nicholas Staples
e322a5f1c3
Review comment fixes.
2016-01-28 11:34:15 +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
Chris Hill-Scott
f15a59b0d6
Use 🐍 case in function names
2016-01-14 11:12:03 +00:00
Chris Hill-Scott
58317afdf1
Add page to choose services
...
Because a user can have multiple services, they need a way to navigate between
them. Normally they can use the ▶ Switcher to do this, except when:
- they first sign in
- they are on a page which isn’t associated with a service (eg user profile) in
which case we can’t use the switcher because it won’t know what the ‘current’
service is
So this commit adds a new page with a (fake) list of services.
2016-01-14 09:55:40 +00:00
Chris Hill-Scott
04b9c120d4
Add mocked service ID to all service-specific pages
2016-01-13 12:44:12 +00:00
Nicholas Staples
7001d8261d
Fix for security hole with setting session['user_id'] before second factor of authentication has been authorised.
2016-01-07 12:43:10 +00:00
Nicholas Staples
ecc3485d72
Merge conflicts with master.
2016-01-05 17:24:13 +00:00
Nicholas Staples
0ebacd6929
Refactor for code_not_received, sign_in, two_factor and verify.
2016-01-05 17:08:50 +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
minglis
e133baa6b3
Merge pull request #26 from alphagov/persis_verify_codes
...
Persis verify codes
2015-12-14 14:56:28 +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
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
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