Skip to content

Commit

Permalink
fix(simple modal): improve error message for auth/invalid-credential …
Browse files Browse the repository at this point in the history
…when reauthenticating
  • Loading branch information
Miodec committed Dec 23, 2024
1 parent b52bb01 commit 5d11df3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/ts/modals/simple-modals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ async function reauthenticate(
status: 0,
message: "Incorrect password",
};
} else if (typedError.code === "auth/invalid-credential") {
return {
status: 0,
message:
"Password is incorrect or your account does not have password authentication enabled.",
};
} else {
return {
status: -1,
Expand Down

0 comments on commit 5d11df3

Please sign in to comment.