From 5d11df3eb70c6df4d04a81cdd3c49f2cc8052f99 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sun, 22 Dec 2024 22:21:27 +0100 Subject: fix(simple modal): improve error message for auth/invalid-credential when reauthenticating --- frontend/src/ts/modals/simple-modals.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/ts/modals/simple-modals.ts b/frontend/src/ts/modals/simple-modals.ts index 952f496c1..9d2a4f23f 100644 --- a/frontend/src/ts/modals/simple-modals.ts +++ b/frontend/src/ts/modals/simple-modals.ts @@ -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, -- cgit v1.2.3