diff --git a/package-lock.json b/package-lock.json index c24cf52fc..42cfba24f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "admin", "version": "1.76.0", "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", @@ -1672,9 +1672,9 @@ } }, "node_modules/@jac-uk/jac-kit": { - "version": "4.1.46", - "resolved": "https://npm.pkg.github.com/download/@jac-uk/jac-kit/4.1.46/b2cec50a1adbc5af704c36373d85e72003f8fff4", - "integrity": "sha512-0c5ft2rJ4adRcIRKr1YktoBYL/37E6bNO8NQdfakMEyFrU/6sNTqbuyozwibTuoloGQp6oCu+2adXrIB40lAUA==", + "version": "4.1.47", + "resolved": "https://npm.pkg.github.com/download/@jac-uk/jac-kit/4.1.47/c9a28b7777bf0c9b9b2ca8cc2b2747b7d4cd6e1b", + "integrity": "sha512-903Uz8sL28VbolGsygxCCusyn4qfLzWjSe5DMbYaHxZhAj6fPuxwmUmiEBxRrYrPaNkosY3anu8rdU7MKPOQEQ==", "dependencies": { "@ckeditor/ckeditor5-build-classic": "^38.1.0", "@ckeditor/ckeditor5-vue": "^5.1.0", diff --git a/package.json b/package.json index 0aa25f33f..4ef523625 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/store/userInvitations.js b/src/store/userInvitations.js index dbd40d8d6..fac71df4e 100644 --- a/src/store/userInvitations.js +++ b/src/store/userInvitations.js @@ -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)); } diff --git a/src/views/Users/Invitations.vue b/src/views/Users/Invitations.vue index 9e9d81417..fef15ce5e 100644 --- a/src/views/Users/Invitations.vue +++ b/src/views/Users/Invitations.vue @@ -83,6 +83,7 @@ hint="The email must be a JAC email address." type="email" autocomplete="off" + :to-lower-case="true" required />