Commit Graph

52 Commits

Author SHA1 Message Date
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
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
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
Pete Herlihy
6e1d21b1ad Added link to activity from the dashboard 2015-11-30 15:46:21 +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
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
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
Rebecca Law
9e27ef964a Make users.name unique. 2015-11-26 11:53:49 +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
ecbf641eef Fix the submodule 2015-11-23 16:18:33 +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