Rebecca Law
b28fbc16d7
A platform admin user is able to see a list of all services.
...
Each service on the list is linked to the dashboard page of the service.
The platform admin user can see/edit templates, see/invite users, see/edit service settings.
The platform admin user can not send messages, see/edit api keys and developer docs.
2016-03-17 10:46:47 +00:00
Rebecca Law
271e194e1c
Should show the sent password reset link page when the user is not found.
2016-03-16 14:19:41 +00:00
Chris Hill-Scott
2292ea4d15
Merge pull request #278 from alphagov/revert-201-stub-send-letters
...
Revert "Stub out the send letters page"
2016-03-16 11:11:31 +00:00
Adam Shimali
4adbcebc6f
Do not send email in case of invite.
...
The user does not have to validate the email token, but it
was still being sent.
2016-03-15 16:58:26 +00:00
Adam Shimali
7dca13407c
Additional check needed to see if user was already a user for the
...
service that they were invited to.
2016-03-15 15:32:30 +00:00
Rebecca Law
5ae582f9be
Remove reference to deleted endpoint
2016-03-15 12:02:03 +00:00
Chris Hill-Scott
8e7b0edc4d
Add page explaining how to send template using API
...
Would like to test something like this and see how well it works.
Intention of having this page is so:
- template IDs are discoverable (https://www.pivotaltracker.com/story/show/115404593 )
- it’s obvious there’s an ‘automated’ way to send messages, as well as the CSV
way (we’ve seen people oblivious to this in research)
2016-03-15 07:11:01 +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
Chris Hill-Scott
91b4545adc
Don’t mix errors with valid rows
...
Brings in: https://github.com/alphagov/notifications-utils/pull/11
Changes the number of rows shown to be at most 15 (either 15 rows with errors
or 15 valid rows.
2016-03-14 16:53:21 +00:00
Adam Shimali
67484d3f35
Merge pull request #269 from alphagov/invite-registration-sms-only
...
Change new invite registration flow to only need
2016-03-14 10:55:31 +00:00
Chris Hill-Scott
a4d00cf67e
Merge pull request #266 from alphagov/better-placeholder-guidance
...
Fix bugs and gripes with adding and editing templates
2016-03-14 10:45:00 +00:00
Chris Hill-Scott
eea8ae5be4
Move ‘new thing’ buttons alongside heading
...
On the send messages and manage team pages we have big green buttons for
adding/inviting a new template or team member.
On the add template page it was at the bottom, and often got missed.
On the manage team page it was at the top, but maybe too prominent because it’s
big and green.
This commit tries putting it in the top right of the page instead (except when
the template page is empty, in which case it’s unchanged).
2016-03-14 10:39:53 +00:00
Adam Shimali
164bdad4f2
Change new invite registration flow to only need
...
sms for verification.
This may change again soon with story to split 2 factor
pages, but for now is correct.
2016-03-14 09:43:34 +00:00
NIcholas Staples
cf195b3a16
Merge pull request #271 from alphagov/remove-dao-layer
...
Start to remove the dao layer
2016-03-14 09:42:22 +00:00
Rebecca Law
34e7d21855
Remove sender module, code was moved to api.
2016-03-13 09:39:29 +00:00
Rebecca Law
6e3bf97af4
Remove services_dao.insert_new_service.
...
Update api_client.create_service to return the service id.
Fix unit tests.
2016-03-13 09:37:17 +00:00
Rebecca Law
9d2fbca557
Merge pull request #264 from alphagov/fix-sign-in-tests
...
Fix to sign in test and user model
2016-03-11 14:59:49 +00:00
Adam Shimali
069a549d57
Bug fix for passing list of empty string if no permissions selected for
...
invite.
Send empty list instead.
2016-03-11 12:50:25 +00:00
Rebecca Law
58c748e703
Noticed that the api was being called when running the unit tests.
...
This also lead me to find the the failed_login_in count was always returning 0.
2016-03-11 11:47:21 +00:00
Rebecca Law
f81dccc513
Merge pull request #263 from alphagov/error-handling
...
Fix bug in error handlers.
2016-03-11 10:52:53 +00:00
Rebecca Law
ccaa5410b3
Removed test as it was not testing the right thing
2016-03-11 10:47:16 +00:00
Rebecca Law
f63a85d003
Fix bug in error handlers.
...
Correct spelling error
2016-03-11 10:16:06 +00:00
Rebecca Law
bb82413718
Merge pull request #260 from alphagov/error-handling
...
Error handling
2016-03-10 16:29:59 +00:00
Rebecca Law
4ba801edab
Merge branch 'master' into error-handling
...
Conflicts:
app/main/views/invites.py
2016-03-10 15:03:21 +00:00
Adam Shimali
54f871dfba
Only actually call api to verify code if both are present in form.
2016-03-10 14:57:29 +00:00
Nicholas Staples
6ea8491b39
Service name uniqueness handled in all cases and tests passing.
2016-03-10 14:29:31 +00:00
Adam Shimali
986edfa317
Check user invite status not accepted before proceeding with flow.
2016-03-10 11:57:40 +00:00
Rebecca Law
f6d98b63ea
Refactored register_errorhandlers so that it handles HTTPError
...
Remove most cases where we catch HTTPError
2016-03-10 11:53:29 +00:00
Adam Shimali
0095e4b608
Updated from git comments. Return status code 400 for duplicate
...
email address.
2016-03-09 16:05:17 +00:00
Adam Shimali
33c92a4e29
Fix for duplicate email registration that meant flash error not being
...
displayed.
The error message does not specify the error is a duplicate email
address so as not to reveal which emails are current user accounts.
2016-03-09 16:05:17 +00:00
Adam Shimali
be5aeb0676
View function for request go live was always calling update service.
...
Actually this should be no op until whatever workflow will take place
in the real world is implemented.
For the moment just display flash message to say request being
processed and do nothing.
2016-03-09 15:02:05 +00:00
NIcholas Staples
eeb0c5fdb7
Merge pull request #249 from alphagov/permission_route_tests
...
Permission route tests
2016-03-09 14:58:49 +00:00
Nicholas Staples
12167b84d1
Fix tests.
2016-03-09 14:11:24 +00:00
Nicholas Staples
c5eaf97669
Tests added for choose_template page.
...
Remove indifferent change to file.
2016-03-09 13:55:40 +00:00
Adam Shimali
208c3cbcf3
Added validation to ensure user can't invite themselves.
...
Refactored Invited user form into permissions and invite forms
for use in invite and edit permissions.
Added template for edit permissions.
2016-03-09 13:00:52 +00:00
Nicholas Staples
d0f113b6bb
Merge with master
2016-03-09 12:12:01 +00:00
Nicholas Staples
d832f7aa5f
Initial test routes tests added.
2016-03-09 12:10:50 +00:00
Adam Shimali
acc7c6cda3
Display email address that invitee will be registered with.
...
Also add flash message for users who already have an account.
2016-03-09 11:27:26 +00:00
Chris Hill-Scott
131d1bedba
Merge pull request #241 from alphagov/utils-csv-processing
...
Give the user better error messages for CSV files
2016-03-09 11:19:20 +00:00
Rebecca Law
74a85a532b
Merge branch 'master' into forgot-password
2016-03-09 10:47:00 +00:00
Rebecca Law
87496aa884
Revert config changes so it doesn't break local dev builds.
...
Update tests
2016-03-09 09:29:35 +00:00
Chris Hill-Scott
93b4419bb2
Store phone number as the user entered it
...
It’s confusing to the user to have their phone number played back to them in
a format that they didn’t enter it. We’ve seen multiple times that people enter
0781… and then don’t recognise their own phone number when it’s played back as
+44781…
The API can handle phone numbers in any format as of
https://github.com/alphagov/notifications-api/pull/134
So there is no need to reformat the user’s phone number before storing it now.
2016-03-08 18:36:23 +00:00
Chris Hill-Scott
eb3734f1d1
Give the user better error messages for CSV files
...
Makes uses of the additions to utils in https://github.com/alphagov/notifications-utils/pull/9
This commit strips out a lot of the complex stuff that the views and templates
in this app were doing. There is now a cleaner separation of concerns:
- utils returns the number and type of errors in the csv
- `get_errors_for_csv` helper in this app maps the number and type of errors
onto human-friendly error messages
- the view and template just doing the glueing-together of all the pieces
This is (hopefully) easier to understand, definitely makes the component
parts easier to test in isolation, and makes it easier to give more specific
error messages.
2016-03-08 18:36:22 +00:00
Chris Hill-Scott
aa842875fc
Merge pull request #245 from alphagov/permission_check_fix
...
Exact permissions added.
2016-03-08 17:17:18 +00:00
Nicholas Staples
a1c4600b29
Exact permissions added.
2016-03-08 16:54:07 +00:00
Rebecca Law
4678a12d33
Revert the disabled email field on the register-invited-user page, the email address is not being submitted on the form when registering
2016-03-08 16:29:05 +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
NIcholas Staples
b78a321d90
Merge pull request #238 from alphagov/show-invite-email
...
Show invite email
2016-03-08 08:49:00 +00:00
Adam Shimali
9bc5d08d52
Flash message to confirm invitation accepted and user has been
...
added to service.
2016-03-08 08:18:41 +00:00