-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #332 from UN-OCHA/develop
chore: Prevent user enumeration, cleanup migrations and update workflows.
- Loading branch information
Showing
196 changed files
with
4,184 additions
and
13,550 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,7 @@ jobs: | |
uses: docker/[email protected] | ||
with: | ||
registry: public.ecr.aws | ||
username: ${{ secrets.ECR_AWS_ACCESS_KEY_I }} | ||
username: ${{ secrets.ECR_AWS_ACCESS_KEY_ID }} | ||
password: ${{ secrets.ECR_AWS_SECRET_ACCESS_KEY }} | ||
env: | ||
AWS_REGION: us-east-1 | ||
|
@@ -169,7 +169,7 @@ jobs: | |
id: fc | ||
if: ${{ !env.ACT }} | ||
with: | ||
github: ${{ secrets.GITHUB_TOKEN }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.pull_request.number }} | ||
comment-author: 'github-actions[bot]' | ||
body-includes: Build output | ||
|
@@ -178,7 +178,7 @@ jobs: | |
uses: peter-evans/create-or-update-comment@v2 | ||
if: ${{ !env.ACT }} | ||
with: | ||
github: ${{ secrets.GITHUB_TOKEN }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
comment-id: ${{ steps.fc.outputs.comment-id }} | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions
20
PATCHES/username_enumeration_prevention-user-login-block-form-3312288.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/username_enumeration_prevention.module b/username_enumeration_prevention.module | ||
index 1038f75b1d823887965f79df9d3b76fc396031a1..075abaa22c8392f810093e066990934328fdd01c 100644 | ||
--- a/username_enumeration_prevention.module | ||
+++ b/username_enumeration_prevention.module | ||
@@ -86,3 +86,15 @@ function username_enumeration_prevention_pass_submit($form, FormStateInterface $ | ||
\Drupal::messenger()->addMessage(t('If the username or email address exists and is active, further instructions have been sent to your email address.')); | ||
$form_state->setRedirect('user.page'); | ||
} | ||
+ | ||
+/** | ||
+ * Implements hook_js_settings_alter(). | ||
+ * | ||
+ * Remove drupalSettings.path.currentPath on 404 responses. | ||
+ */ | ||
+function username_enumeration_prevention_js_settings_alter(&$settings) { | ||
+ if (\Drupal::routeMatch()->getRouteName() === "system.404" ) { | ||
+ $settings['path']['currentPath'] = ''; | ||
+ } | ||
+} | ||
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.