use localized error message

(cherry picked from commit 92a74cee5a)
This commit is contained in:
Sascha Szott
2024-01-10 16:54:18 +01:00
committed by github-actions[bot]
parent fed70c5e9b
commit e7490340f8

View File

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