diff --git a/src/ui/desktop/authentication/Auth.tsx b/src/ui/desktop/authentication/Auth.tsx index cdd4c5ca..1511b309 100644 --- a/src/ui/desktop/authentication/Auth.tsx +++ b/src/ui/desktop/authentication/Auth.tsx @@ -376,8 +376,8 @@ export function Auth({ }; toast.error( error?.response?.data?.error || - error?.message || - t("errors.failedPasswordReset"), + error?.message || + t("errors.failedPasswordReset"), ); } finally { setResetLoading(false); @@ -936,8 +936,8 @@ export function Auth({ }} > {theme === "dark" || - (theme === "system" && - window.matchMedia("(prefers-color-scheme: dark)").matches) ? ( + (theme === "system" && + window.matchMedia("(prefers-color-scheme: dark)").matches) ? ( ) : ( @@ -1031,7 +1031,13 @@ export function Auth({ )} {!webviewAuthSuccess && totpRequired && ( -
+
{ + e.preventDefault(); + handleTOTPVerification(); + }} + >

{t("auth.twoFactorAuth")} @@ -1061,10 +1067,9 @@ export function Auth({

@@ -1082,7 +1087,7 @@ export function Auth({ > {t("common.cancel")} -
+ )} {!webviewAuthSuccess && @@ -1492,10 +1497,10 @@ export function Auth({ }} > {theme === "dark" || - (theme === "system" && - window.matchMedia( - "(prefers-color-scheme: dark)", - ).matches) ? ( + (theme === "system" && + window.matchMedia( + "(prefers-color-scheme: dark)", + ).matches) ? ( ) : (