Skip to content

Commit 5d11df3

Browse files
committed
fix(simple modal): improve error message for auth/invalid-credential when reauthenticating
1 parent b52bb01 commit 5d11df3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

frontend/src/ts/modals/simple-modals.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,12 @@ async function reauthenticate(
199199
status: 0,
200200
message: "Incorrect password",
201201
};
202+
} else if (typedError.code === "auth/invalid-credential") {
203+
return {
204+
status: 0,
205+
message:
206+
"Password is incorrect or your account does not have password authentication enabled.",
207+
};
202208
} else {
203209
return {
204210
status: -1,

0 commit comments

Comments
 (0)