Make the error message for when a user does not exist when attempting to login via OIDC more user-friendly.
This commit is contained in:
parent
eb312cc61d
commit
637b773fd6
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ module.exports = {
|
||||||
.first()
|
.first()
|
||||||
.then((user) => {
|
.then((user) => {
|
||||||
if (!user) {
|
if (!user) {
|
||||||
throw new error.AuthError('No relevant user found');
|
throw new error.AuthError(`A user with the email ${data.identity} does not exist. Please contact your administrator.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a moment of the expiry expression
|
// Create a moment of the expiry expression
|
||||||
|
|
Loading…
Reference in a new issue