Commit Graph

26 Commits

Author SHA1 Message Date
Rebecca Law
edfc1d6efc 108536490: Implement User.is_active()
If the state of the user is inactive the user.is_active() returns false.
2015-12-01 10:00:07 +00:00
Rebecca Law
3b27db98ff 108536490: Implement locked out function.
User is locked if they fail to login 10 times or more.
2015-12-01 10:00:07 +00:00
Rebecca Law
ff9e98907e 108536490: Update encryption for password 2015-12-01 10:00:07 +00:00
Rebecca Law
3f017b30f2 108536490: add the proxy_fix 2015-12-01 10:00:07 +00:00
Rebecca Law
6f61906fd4 108536490: Implement LoginManager for the admin app.
Also added csrf error handler, will make the session unauthorized if the csrf token is invalid.
2015-12-01 10:00:06 +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
Chris Heathcote
1e08c9b1a8 Added two-factor resending to sign in flow.
Assumes user will have to get an admin to update phone number if lost.
2015-11-30 16:41:05 +00:00
Chris Heathcote
b2ca6343a7 Merged from master 2015-11-30 16:36:07 +00:00
Pete Herlihy
b9c5c374e9 Added routes the new admin page shells
/user-profile
/manage-users
/service-settings
/api-keys
2015-11-30 16:28:17 +00:00
Chris Heathcote
48f722b3b9 Added forgot password / create new password screens
Create new password would be sent in an email to the user.
2015-11-30 16:19:59 +00:00
Chris Heathcote
b2dd3ca214 Merge branch 'master' into login-errors
# Conflicts:
#	app/main/views/index.py
2015-11-30 16:09:43 +00:00
Chris Heathcote
96648ed58b Added email and text message not received pages in registration flow 2015-11-30 16:08:44 +00:00
Pete Herlihy
b70c05ab8f Added activity views to the index 2015-11-30 15:34:31 +00:00
Pete Herlihy
a33398a46a Added email sending views to the index 2015-11-30 14:49:11 +00:00
Pete Herlihy
15a8fab7e9 Removed whitespace for code pedant thingee. 2015-11-30 14:28:52 +00:00
Pete Herlihy
13e14d057b Adding sms sending views 2015-11-30 14:22:39 +00:00
Chris Heathcote
bbcfe8aa3f Fixed blank lines in index.py
Fixed blank lines in index.py
2015-11-26 10:18:37 +00:00
Chris Heathcote
701ce482d4 Create base forms for registration and sign in
Created routes and forms for registration, sign in, and registration
from an invite.
Also tidied up assets folder, removed copy of fronted toolkit.
2015-11-26 10:18:37 +00:00
Rebecca Law
af9e2cf0fa 108536234: Added a dao method to get all users. 2015-11-26 09:59:23 +00:00
Rebecca Law
abe1d8ae17 108536234: created users and roles data and domain model.
You will need to run the /scripts/bootstrap.sh to create the database for test and the app.
2015-11-25 15:29:12 +00:00
Rebecca Law
b83d2f0d8a Introduce config file for application 2015-11-24 09:40:14 +00:00
Rebecca Law
11d79951f3 Moved the templates into the app directory.
Added Manager to the app.py
2015-11-23 16:07:19 +00:00
Rebecca Law
a9fe2e6bb7 Add govuk-template-flask-skeleton 2015-11-23 13:50:37 +00:00
Rebecca Law
9ec1ba2dfa Use absolute paths for imports 2015-11-20 16:33:11 +00:00
Rebecca Law
d6c81d581d Start to create views 2015-11-20 16:22:44 +00:00