use localized error message

This commit is contained in:
Sascha Szott
2024-01-10 16:54:18 +01:00
committed by GitHub
parent 610062bdea
commit 92a74cee5a

View File

@@ -119,7 +119,7 @@ export class AuthService {
if (hasValue(rd.payload) && rd.payload.authenticated) {
return rd.payload;
} else {
throw (new Error('Invalid email or password'));
throw (new Error('auth.errors.invalid-user'));
}
}));