aboutsummaryrefslogtreecommitdiffstats
path: root/backend/routes/forms/submit.py (follow)
Commit message (Collapse)AuthorAgeLines
* Run ruff on codeHEADmainGravatar Joe Banks2025-08-08-1/+4
|
* Validate unique responses on submissionGravatar Joe Banks2025-08-08-0/+16
|
* ruff formatGravatar Joe Banks2025-05-31-1/+1
|
* thread_id is a param, not a body itemGravatar Joe Banks2025-05-31-5/+7
|
* Use thread_id for webhook execute on submissionGravatar Joe Banks2025-05-31-0/+3
|
* Use redis for the discord member cache over mongoGravatar Chris Lovering2024-07-16-1/+1
|
* Remove erroneous await from non-async set_response_tokenGravatar Joe Banks2024-07-08-1/+1
|
* Apply fixable lint settings with RuffGravatar Joe Banks2024-07-08-66/+68
|
* Check If User Exists Before Sending WebhookGravatar Hassan Abouelela2022-07-10-5/+5
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Handle Improper Output For UnittestsGravatar Hassan Abouelela2022-07-01-2/+21
| | | | | | | | | | The old testing code only checks the first character of the stdout, meaning that if a user succeeds in printing a 1 before the rest of the output, the testing code will consider that a pass and discard the rest. This change checks that the rest of the stdout is empty as expected. Signed-off-by: Hassan Abouelela <[email protected]>
* Enable Login Form In ProductionGravatar Hassan Abouelela2022-06-17-3/+13
| | | | | | | | Adds a non-discoverable login form in all environments to make it easier to authenticate. Ideally, we'd have an actual login button, but this is an easy solution in the meantime. Signed-off-by: Hassan Abouelela <[email protected]>
* Overhaul Scope SystemGravatar Hassan Abouelela2022-02-05-1/+1
| | | | | | | Adds discord role support to the pre-existing scopes system to power more complex access permissions. Signed-off-by: Hassan Abouelela <[email protected]>
* Don't include user mention for anonymous form submissionsGravatar Chris Lovering2022-01-21-1/+5
| | | | | | We currently use WEBHOOK_ENABLED to determine whether user data should be stored to the db. However, when webhooking a form submission this config is ignored, and the user mention is always included if available. This means that if a user login in using another form, and then submits an anonymous form with the same session, their name will be included in the webhook.
* Hash Cf-Connecting-IP if given, else remote hostGravatar Joe Banks2021-12-25-1/+5
|
* Uses Backend URL In EmbedGravatar Hassan Abouelela2021-07-06-1/+1
| | | | | | | Temporarily switches the URL in discord embeds from the frontend, to the backend, to allow for easier viewing until the frontend is ready. Signed-off-by: Hassan Abouelela <[email protected]>
* Verifies Unittest Error ResponsesGravatar Hassan Abouelela2021-06-03-1/+14
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Documents Return Code Gravatar Hassan Abouelela2021-06-02-0/+1
| | | | | Adds a comment which explains when a certain return_code is used. Co-authored-by: Joe Banks <[email protected]>
* Uses 422 For Failed Tests Gravatar Hassan Abouelela2021-06-02-1/+1
| | | | | Uses 422 instead of 403 to indicate a test has failed. Co-authored-by: Joe Banks <[email protected]>
* Reports All Unittest Failure ReasonsGravatar Hassan Abouelela2021-06-02-2/+9
| | | | | | Records the reason of failure for non-zero exit codes. Signed-off-by: Hassan Abouelela <[email protected]>
* Records Failed UnittestsGravatar Hassan Abouelela2021-06-02-6/+28
| | | | | | | Adds logic for saving submissions of failed unittests. Updates schema docs. Signed-off-by: Hassan Abouelela <[email protected]>
* Set Form Viewing URLGravatar Hassan Abouelela2021-05-30-1/+1
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Simplify role assigning rate limit handlingGravatar ks1292021-03-09-12/+6
| | | Co-authored-by: Hassan Abouelela <[email protected]>
* Merge branch 'main' into ks123/role-assigningGravatar ks1292021-03-09-5/+53
|\
| * Switches Forwarded Protocol HeaderGravatar Hassan Abouelela2021-03-07-4/+1
| | | | | | | | | | | | | | | | Traefik forwards https traffic to http, which causes issues with the protocol in a request's URL. This switch uses the protocol header to correctly set the protocol. Signed-off-by: Hassan Abouelela <[email protected]>
| * Fixes Domain URL On Token CookieGravatar Hassan Abouelela2021-03-07-1/+3
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * Makes Helper To Handle Token SameSite LogicGravatar Hassan Abouelela2021-03-07-5/+4
| | | | | | | | | | | | Adds a helper method to allow tokens to work on deploy previews. Signed-off-by: Hassan Abouelela <[email protected]>
| * Revert "Sets Token Cookie To Same Site To Lax"Gravatar Hassan Abouelela2021-03-06-1/+1
| | | | | | | | | | | | This reverts commit 013ea900 Signed-off-by: Hassan Abouelela <[email protected]>
| * Sets Token Cookie To Same Site To LaxGravatar Hassan Abouelela2021-03-06-1/+1
| | | | | | | | | | | | | | Sets the authorization token cookie's security policy to lax, to allow it to work on the site. Signed-off-by: Hassan Abouelela <[email protected]>
| * Renames Token To `token` Gravatar Hassan Abouelela2021-03-06-1/+1
| | | | | | | | | | Changes the name for the token used to authorize with the backend. Co-authored-by: Joe Banks <[email protected]>
| * Merge branch 'main' into token-expiryGravatar Hassan Abouelela2021-02-28-1/+22
| |\ | | | | | | | | | | | | | | | # Conflicts: # backend/routes/forms/form.py # backend/routes/forms/submit.py
| | * Remove unneeded temp variableGravatar Matteo Bertucci2021-02-25-4/+2
| | |
| | * Document unittest codeGravatar Matteo Bertucci2021-02-24-0/+2
| | |
| | * Return 403 on failed testsGravatar Matteo Bertucci2021-02-24-1/+1
| | |
| | * Switch to 100 chars line length and get rid of the noqasGravatar Matteo Bertucci2021-02-24-4/+11
| | |
| | * Hook up unittesting in the submit protocolGravatar Matteo Bertucci2021-02-24-0/+14
| | |
| * | Centralizes Admin AuthenticationGravatar Hassan Abouelela2021-02-20-0/+1
| | | | | | | | | | | | | | | | | | | | | Sets admin authentication on authenticator to allow the addition and removal of admins without creating a new token. Signed-off-by: Hassan Abouelela <[email protected]>
| * | Remove AuthorizationHeaders ClassGravatar Hassan Abouelela2021-02-19-2/+1
| | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | Refreshes User Data On Form SubmitGravatar Hassan Abouelela2021-02-19-8/+38
| |/ | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Handle ratelimits for role assigningGravatar ks1292020-12-29-7/+19
| |
* | Implement roles assigning to submit routeGravatar ks1292020-12-29-12/+40
|/
* Add handling of optional fields to submit endpointGravatar ks1292020-12-28-1/+4
|
* Dedents Webhook ObjectGravatar Hassan Abouelela2020-12-22-3/+3
| | | | | | | Removes the meta object, and moves the webhook object under the main form object to reduce nesting. Signed-off-by: Hassan Abouelela <[email protected]>
* Merge branch 'main' into discord-webhookGravatar Hassan Abouelela2020-12-21-6/+1
|\ | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> # Conflicts: # backend/routes/forms/submit.py
| * Merge branch 'main' into ks123/dns-check-removeGravatar Joe Banks2020-12-18-2/+2
| |\
| * | Remove DNS blacklist handling from submit routeGravatar ks1292020-12-18-6/+1
| | |
* | | Adds and Documents Webhook Message VariablesGravatar Hassan Abouelela2020-12-21-0/+12
| | | | | | | | | | | | | | | | | | | | | Adds better parsing and formatting for webhook message variables, and documents them in SCHEMA.md. Signed-off-by: Hassan Abouelela <[email protected]>
* | | Uses Builtin User ClassGravatar Hassan Abouelela2020-12-18-9/+17
| | | | | | | | | | | | | | | | | | Uses builtin user formatting for username and mentions. Signed-off-by: Hassan Abouelela <[email protected]>
* | | Change Embed DescriptionGravatar Hassan Abouelela2020-12-18-1/+1
| | | | | | | | | Co-authored-by: Joe Banks <[email protected]>
* | | Merge branch 'main' into discord-webhookGravatar Hassan Abouelela2020-12-18-2/+2
|\ \ \ | | |/ | |/| | | | | | | # Conflicts: # backend/routes/forms/submit.py
| * | Update submit.pyGravatar Joe Banks2020-12-17-2/+2
| |/