aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
Commit message (Collapse)AuthorAgeLines
* Merge branch '3167-strip-space-middle'M Somerville2020-10-02-1/+5
|\
| * Don’t strip all spaces from Open311 categories.M Somerville2020-10-02-1/+5
| | | | | | | | | | | | If a category’s send method is Open311, only strip spaces from the ends of the code. We are aware of active Open311 servers that have codes with spaces in the middle.
* | Merge branch 'deleted-response-priorities'M Somerville2020-10-02-1/+2
|\ \
| * | Do not display deleted priorities in inspect form.M Somerville2020-10-02-1/+2
| |/
* / Record whether report made on desktop or mobile.M Somerville2020-10-02-3/+12
|/
* Merge branch 'improved-email-phone-in-form'M Somerville2020-09-30-13/+69
|\
| * Show error if text confirmation code sending failsM Somerville2020-09-25-0/+10
| |
| * Split up two username fields.M Somerville2020-09-25-12/+23
| | | | | | | | | | | | Rename the not-logging-in username field to username_register. Keep the sign-in field as username because that e.g. overlaps with auth code in two-factor authentication.
| * If text auth on, ask which method they wish to useM Somerville2020-09-25-1/+16
| |
| * Show username error in correct place only.M Somerville2020-09-25-0/+20
| |
* | do not trigger duplicate check with stopper checkStruan Donald2020-09-30-0/+28
|/ | | | | | | | | | | | The stopper checking code is triggered using the category_change event which, by default also calls the duplicate check code. This meant that when an extra question dropdown with an associated stopper was updated the duplicate check re-ran and the duplicate reports panel was re-shown. The invocation of category_change on the extra questions now includes the skip_duplicates parameter to avoid this. Fixes mysociety/fixmystreet-commercial#2007
* fix using multiple disable messages on category questionsStruan Donald2020-09-25-4/+6
| | | | | | Provide a stopper per disable message, rather than per question. Previously there was one stopper per dropdown so only the last message encountered was used.
* [Hounslow] Factor non-map report creation calls.Matthew Somerville2020-09-02-9/+21
|
* [IoW] Small refactor of munging functions.Matthew Somerville2020-09-02-6/+2
|
* Don’t display duplicate categories in filter on /around and /myDave Arter2020-08-28-0/+6
|
* [Hackney] Allow editing & addition of contacts with special destination ↵Dave Arter2020-08-24-1/+3
| | | | | | | addresses This adds a cobrand hook to validate the email address provided when editing a contact in the admin.
* Offline process for CSV generation.M Somerville2020-08-11-2/+73
| | | | | Include a status page, the option for access token requests to use this system, and a script for manual generation.
* Refactor out CSV generation to its own package.M Somerville2020-08-11-290/+34
|
* Remove use of $c from various functions.M Somerville2020-08-06-11/+15
| | | | This means these functions can more easily be used in a non-web context.
* Add database index for user full text search.M Somerville2020-08-06-16/+1
|
* Add extra ordering to search query to force full text index use.Matthew Somerville2020-08-06-1/+6
|
* Add photo upload field to inspector formChris Mytton2020-08-06-0/+7
| | | | | This adds the code for photo uploads from the regular update form to the inspector form, and adds details to the documentation.
* Do not error in export if report has bad category.M Somerville2020-08-04-1/+1
| | | | | | If category groups are enabled, the CSV export includes a subcategory, but it was only fetching a valid groups value if the row's contact was found.
* Lowercase contact email when looking for user.Matthew Somerville2020-08-03-1/+1
|
* Add database index for full text search.Matthew Somerville2020-07-31-31/+15
|
* Prefetch user bodies in admin user search.Matthew Somerville2020-07-31-2/+5
|
* Centralise update creation to include fields.Matthew Somerville2020-07-14-54/+7
| | | | | | Given the user, we can infer the name if not provided, and the extra data if a staff user. We can also provide defaults for various other fields. Always have superuser take precedence over from_body.
* Merge branch 'hibp'Matthew Somerville2020-07-08-14/+40
|\
| * Add option to check password on Have I Been Pwned.Matthew Somerville2020-07-07-14/+40
| | | | | | | | | | | | | | If switched on, sends first five letters of the SHA1 hash of the entered password to HIBP's API, which then returns all matching hashes in their database of breached passwords. If we find a match, tell the user they need to pick a different password.
* | Better sort admin user table.Matthew Somerville2020-07-07-14/+9
|/ | | | | Sort the table when showing search results, and show users without name at the bottom, rather than at the top.
* Factor out/default Open311 construction object.Matthew Somerville2020-07-06-29/+1
| | | | This simplifies the code wherever used.
* Add allowed_domains OIDC config to limit logins to specific domainsDave Arter2020-07-02-0/+8
|
* Include redirect URI when fetching OIDC access tokenDave Arter2020-07-02-0/+1
|
* OIDC scope/token parsing improvementsDave Arter2020-07-02-5/+16
| | | | | | | - Cobrand config can now specify custom scope and other params e.g. G Suite supports per-domain customisation and the ‘prompt’ param to always ask the user to select the account they want to login with. - Token may have an ‘name’ claim instead of needing to concat given_/family_name claims
* Rename O::L::C::W::Azure to O::L::C::W::AuthCodeFlowDave Arter2020-07-02-2/+2
| | | | Turns out there’s nothing strictly Azure-specific about it.
* Only show access tokens once, and store hashed.Matthew Somerville2020-06-30-3/+4
|
* Merge branch 'issues/commercial/1906-he-anon-all'Matthew Somerville2020-06-10-19/+14
|\
| * [Highways England] Anonymize all names on cobrand.Matthew Somerville2020-06-09-0/+5
| |
| * [Open311] Return reports in all closed states.Matthew Somerville2020-06-09-1/+1
| |
| * [Open311] Use indexed way of searching by body.Matthew Somerville2020-06-09-18/+8
| |
* | Merge branch 'recaptcha'Matthew Somerville2020-06-09-0/+3
|\ \
| * | [fixmystreet.com] Add option for recaptcha.Matthew Somerville2020-06-04-0/+3
| | | | | | | | | | | | | | | We are getting spam submissions of e.g. alert subscribe form, which causes people to get a confirmation email.
* | | Merge branch 'alert-active-deletion'Matthew Somerville2020-06-09-0/+7
|\ \ \ | |_|/ |/| |
| * | Store staff user when staff make anonymous update.Matthew Somerville2020-06-03-0/+7
| |/ | | | | | | Match the identical code for anonymous reports.
* / Add Open Location Codes support to search box.M Somerville2020-06-04-0/+25
|/
* Make sure category shown in all its groups.Matthew Somerville2020-05-26-5/+9
| | | | | | | | When compiling the reporting category dropdown, only one instance of each value was used. But if a value appears twice, from two different bodies, in different groups, it would then not appear in all the groups it would be expected to. Make sure we update the list of groups of the category if we come across another with the same value.
* Consistent use of Contact groups.Matthew Somerville2020-05-26-13/+18
|
* admin interface for per category anonymous reportingStruan Donald2020-05-12-1/+1
| | | | | | | | Add an interface to enable a category to accept anonymous reports, plus the code to handle permitting this. It's only available on single body cobrand sites in the default configuration.
* display user detail for contributed_by in report_editStruan Donald2020-05-12-0/+20
| | | | Include name, email and body rather than just user id.
* Merge branch 'tfl-category-restrictions'Matthew Somerville2020-05-12-20/+63
|\