added a better error message

closes #2872
This commit is contained in:
Miodec 2022-04-24 21:45:01 +02:00
parent bd5bcf075d
commit 4bd5c9ecba

View file

@ -361,6 +361,9 @@ export function signIn(): void {
message = "Incorrect password";
} else if (error.code === "auth/user-not-found") {
message = "User not found";
} else if (error.code === "auth/invalid-email") {
message =
"Invalid email format (make sure you are using your email to login - not your username)";
}
Notifications.add(message, -1);
LoginPage.hidePreloader();