feat: login

:%s
This commit is contained in:
lytrankieio123
2021-09-29 17:56:41 +07:00
parent 1383d66832
commit aa32d6fe27
10 changed files with 114 additions and 60 deletions

View File

@@ -0,0 +1,14 @@
import { LANGUAGE } from "./language.utils";
export function errorMapping(message?: string) {
if (!message) {
return LANGUAGE.MESSAGE.ERROR
}
switch (message) {
case 'The provided credentials are invalid':
return 'The email address or password is incorrect!'
default:
return LANGUAGE.MESSAGE.ERROR
}
}