feat(branding): add global dynamic theme system and fix 2fa mail

This commit is contained in:
DanielS
2026-08-14 15:57:29 +02:00
parent 009b167cbd
commit 9ecdc645e8
22 changed files with 1764 additions and 313 deletions

View File

@@ -137,8 +137,11 @@ export function LoginForm({
}
};
const isVerifyingRef = useRef(false);
const handleVerify2FA = async (code: string) => {
if (!userId) return;
if (!userId || isVerifyingRef.current) return;
isVerifyingRef.current = true;
setIsLoading(true);
setError(null);
@@ -160,6 +163,7 @@ export function LoginForm({
inputRefs.current[0]?.focus();
} finally {
setIsLoading(false);
isVerifyingRef.current = false;
}
};