Commit Graph

92 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
af382885d3 108536490: Use ItsDangerousSessionInterface in the app.
Start using http://flask.pocoo.org/snippets/51/
2015-12-01 10:00:06 +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
Rebecca Law
4d2b9c7fc2 Merge pull request #7 from alphagov/login-errors
Login errors
2015-12-01 09:53:25 +00:00
Chris Heathcote
85e575dda8 Merge pull request #6 from alphagov/ph-notification-page-bu
Fixed broken return path to job from notification page
2015-11-30 16:43:33 +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
Pete Herlihy
cd2285d78b Fixed broken return path to job from notification page 2015-11-30 16:38:29 +00:00
Chris Heathcote
b2ca6343a7 Merged from master 2015-11-30 16:36:07 +00:00
Chris Heathcote
9e5386b133 Merge pull request #5 from alphagov/ph-admin-pages
Added the shell admin pages to the app
2015-11-30 16:34:16 +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
Pete Herlihy
911642e407 Updated the URL from _ to - on check email page [ci skip] 2015-11-30 16:25:38 +00:00
Pete Herlihy
ed39494d5d Updated the URL from _ to - on check sms page [ci skip] 2015-11-30 16:25:16 +00:00
Pete Herlihy
d6b2ec83d8 Updated the URL from _ to - on send email page 2015-11-30 16:24:24 +00:00
Pete Herlihy
2a70bbe276 Updated the URL from _ to - on send sms page 2015-11-30 16:23:41 +00:00
Pete Herlihy
e488abadd2 Updated the dashboard with links to the admin type pages [ci skip] 2015-11-30 16:22:35 +00:00
Chris Heathcote
021ace9a87 Added text to the register screen
Prewar users they’ll need access to their email account and mobile
phone when registering.
2015-11-30 16:22:26 +00:00
Pete Herlihy
9b1b6e567b Added the shell API keys page [ci skip] 2015-11-30 16:20:45 +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
Pete Herlihy
d534c97333 Added the shell service settings page [ci skip] 2015-11-30 16:16:58 +00:00
Pete Herlihy
68f7dfb814 Added the shell manage users page [ci skip] 2015-11-30 16:15:51 +00:00
Pete Herlihy
87cadc3dde Added the shell user profile page [ci skip] 2015-11-30 16:13:33 +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
b624b9d39f Fixed path back to parent job [ci skip] 2015-11-30 16:07:02 +00:00
Pete Herlihy
b60fbf85ff Fixed path back to all jobs [ci skip] 2015-11-30 16:06:33 +00:00
Chris Heathcote
115df1418a Merge pull request #4 from alphagov/ph-activity-shell-pages
Added shell pages for activities (jobs/job/notification)
2015-11-30 15:59:40 +00:00
Pete Herlihy
6e1d21b1ad Added link to activity from the dashboard 2015-11-30 15:46:21 +00:00
Martyn Inglis
369de6b62e Added files to support AWS Code deploy 2015-11-30 15:44:16 +00:00
Pete Herlihy
6d17951ef9 Updated path from job to notification 2015-11-30 15:35:39 +00:00
Pete Herlihy
9309d3ee6c Updated path from jobs to job 2015-11-30 15:35:01 +00:00
Pete Herlihy
b70c05ab8f Added activity views to the index 2015-11-30 15:34:31 +00:00
Pete Herlihy
90603ed2ca Added link back to activity hub to the jobs page 2015-11-30 15:26:58 +00:00
Pete Herlihy
3dd81b9b12 Added shell page for sending activity (notification) 2015-11-30 15:23:18 +00:00
Pete Herlihy
2cb2d538ea Added shell page for sending activity (job contents) 2015-11-30 15:13:25 +00:00
Pete Herlihy
d36f86d2c2 Added shell page for sending activity (jobs index) 2015-11-30 15:08:12 +00:00
Chris Heathcote
a2b36340da Merge pull request #3 from alphagov/ph-send-email
Added email sending shell pages, added routes from dashboard
2015-11-30 15:00:39 +00:00
Pete Herlihy
996853d8fd Added links to the send pages for email and sms 2015-11-30 14:53:25 +00:00
Pete Herlihy
a33398a46a Added email sending views to the index 2015-11-30 14:49:11 +00:00
Pete Herlihy
e394f6eac2 Create shell page for checking email messages before sending 2015-11-30 14:47:41 +00:00
Pete Herlihy
9556c4c224 Added shell page for sending email 2015-11-30 14:46:40 +00:00
Chris Heathcote
d8151c5ac7 Merge pull request #2 from alphagov/ph-send-sms-flow
Ph send sms page shells
2015-11-30 14:41:41 +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
Pete Herlihy
3acbd331f3 Create shell page for checking text messages before sending 2015-11-30 14:20:17 +00:00
Pete Herlihy
c091932543 Shell page for sending text messages 2015-11-30 14:17:54 +00:00