Skip to content

Commit

Permalink
Fix/admin 2614 user invitation email uppercase (#2624)
Browse files Browse the repository at this point in the history
* use-sanitise-xlsx

* Revert "Bump version number to 1.76.0"

This reverts commit ec66b90.

* revert

* fix

* use lowercase email to store and query user invitations

* update jac-kit

---------

Co-authored-by: Tom Russell <TR115251@hotmail.co.uk>
  • Loading branch information
KoWeiJAC and tomlovesgithub authored Nov 28, 2024
1 parent 74091e1 commit 95fd23a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"lint-ci": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --no-fix --ignore-path .gitignore"
},
"dependencies": {
"@jac-uk/jac-kit": "4.1.46",
"@jac-uk/jac-kit": "4.1.47",
"@ministryofjustice/frontend": "0.2.4",
"@sentry/tracing": "^7.61.1",
"@sentry/vue": "^7.61.1",
Expand Down
2 changes: 1 addition & 1 deletion src/store/userInvitations.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default {
if (!email) return null;

try {
let firestoreRef = query(collectionRef, where('email', '==', email));
let firestoreRef = query(collectionRef, where('email', '==', email.toLowerCase()));
if (status) {
firestoreRef = query(firestoreRef, where('status', '==', status));
}
Expand Down
1 change: 1 addition & 0 deletions src/views/Users/Invitations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
hint="The email must be a JAC email address."
type="email"
autocomplete="off"
:to-lower-case="true"
required
/>
<p
Expand Down

0 comments on commit 95fd23a

Please sign in to comment.