Commit Graph

1099 Commits

Author SHA1 Message Date
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
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
Chris Hill-Scott
d1e83d1196 Merge pull request #261 from alphagov/unbreak-my-links
Fix broken links in yellow box on dashboard
2016-03-11 14:09:44 +00:00
Adam Shimali
f8b212fd21 Merge pull request #265 from alphagov/invite-permissions-fix
Bug fix for passing list of empty string if no permissions selected for
2016-03-11 13:55:06 +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
Chris Hill-Scott
d9fd1d5117 Fix broken links in yellow box on dashboard
Links were missing the double mustaches.
2016-03-11 08:43:45 +00:00
Chris Hill-Scott
02dfb2820d Merge pull request #256 from alphagov/name-1-not-test-name
Use ‘name 1’ when sending yourself a message
2016-03-10 19:41:12 +00:00
Rebecca Law
bb82413718 Merge pull request #260 from alphagov/error-handling
Error handling
2016-03-10 16:29:59 +00:00
Adam Shimali
dfcce2545d Merge pull request #259 from alphagov/verify-code-fix
Only actually call api to verify code if both are present in form.
2016-03-10 15:06:34 +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
Rebecca Law
735ca07dee Handle HTTPError from API and routing errors from flask.
Removed catching the HTTPError where applicable.
2016-03-10 14:56:47 +00:00
NIcholas Staples
8c250a7853 Merge pull request #258 from alphagov/handle_duplicate_service_name
Handle duplicate service name
2016-03-10 14:55:35 +00:00
Nicholas Staples
6ea8491b39 Service name uniqueness handled in all cases and tests passing. 2016-03-10 14:29:31 +00:00
Nicholas Staples
adf08fd00e Merge remote-tracking branch 'origin/master' into handle_duplicate_service_name 2016-03-10 13:14:16 +00:00
Adam Shimali
7b18543f02 Merge pull request #257 from alphagov/double-accept-bugfix
Check user invite status not accepted before proceeding with flow.
2016-03-10 12:42:38 +00:00
Chris Hill-Scott
25103aaef0 Use ‘name 1’ when sending yourself a message
We reckon this is better than ‘test name’, ‘test date’, etc.
2016-03-10 12:03:26 +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
Chris Hill-Scott
36cab58864 Merge pull request #254 from alphagov/placeholder-preview-html-fix
Fix bug with ‘ghost’ links in template textbox
2016-03-10 09:32:03 +00:00
Adam Shimali
7dd5eb458f Merge pull request #255 from alphagov/bugfix-permissions-validation
Added error message if no permissions chosen
2016-03-09 18:03:10 +00:00
Adam Shimali
4c323a9a99 Added error message on template for failing to choose permissions.
For error message over ride from WTF forms radio field created
custom field.
2016-03-09 17:42:47 +00:00
Chris Hill-Scott
836fe77c37 Fix bug with ‘ghost’ links in template textbox
This is a bug with the code that highlights placeholders.

It was taking the value of the textbox and copying it straight into the HTML
of the layer that contains the blue lozenges. This meant that any HTML that the
user typed into the textbox was rendered by the browser.

This commit fixes the bug by:
1. taking the contents of the textbox
2. copying it to the _text_ (not inner HTML) of a temporary `<div>`
3. taking the inner HTML of that `<div>` (whose text has been encoded with HTML
   entities in step 2., eg `>` becomes `&gt;`)
4. using that for the HTML content of the layer with the blue lozenges
2016-03-09 16:58:51 +00:00
Adam Shimali
47079f1128 Merge pull request #252 from alphagov/same-registration-email-bug-fix
Fix for duplicate email registration
2016-03-09 16:34:59 +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
eea5bfe749 Merge pull request #253 from alphagov/delete-user-bug-fix
Removed links for deleting users. Also removed view function
2016-03-09 16:04:09 +00:00
Adam Shimali
9523e224bc Removed links for deleting users. Also removed view function
that allowed deletion of users.
2016-03-09 15:30:40 +00:00
Adam Shimali
2acc496734 Merge pull request #251 from alphagov/request-golive-bugfix
View function for request go live was always calling update service.
2016-03-09 15:15:50 +00:00
minglis
4900528222 Merge pull request #250 from alphagov/change-default-service-limit
Default service limit reduced to 50
2016-03-09 15:08:23 +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
Chris Hill-Scott
8e0a043d31 Merge pull request #247 from alphagov/email-flow-fixes
Email flow fixes
2016-03-09 14:24:41 +00:00
Martyn Inglis
8a4e8bd3f6 Default service limit reduced to 50 2016-03-09 14:22:35 +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
4d5dc0f36b Merge pull request #248 from alphagov/cannot-invite-yourself
Added validation to ensure user can't invite themselves.
2016-03-09 13:13:20 +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
Chris Hill-Scott
91e9cd37b1 Make text of ‘send’ button say ‘email’ or ‘text…’
Previously the send button on the ‘Check and confirm’ page always said
‘Send x messages’, irrespective of whether you were sending emails or text
messages.

This commit makes it say one of
- Send 1 email
- Send 29 emails
- Send 1 text message
- Send 999 text messages
2016-03-09 12:28:22 +00:00
Chris Hill-Scott
b93a1e89c8 Fix bug which prevented viewing an email job
The template for viewing a job was not getting all the variables it needed in
order to display an email template. Hadn’t noticed this before, because email
templates require more variables than SMS templates.

This commit fixes that bug.
2016-03-09 12:25:33 +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
2dbfff4730 Merge pull request #246 from alphagov/flash-message-and-bug-fix
Display email address that invitee will be registered with.
2016-03-09 11:48:22 +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
110608d1f9 Merge pull request #243 from alphagov/forgot-password
Forgot password
2016-03-09 10:52:26 +00:00