Merge pull request #4877 from Dokploy/fix/2fa-invalid-code-error-message

fix(2fa): show correct error message for invalid TOTP code
This commit is contained in:
Mauricio Siu
2026-07-21 00:52:04 -06:00
committed by GitHub

View File

@@ -100,7 +100,7 @@ export const Enable2FA = () => {
});
if (result.error) {
if (result.error.code === "INVALID_TWO_FACTOR_AUTHENTICATION") {
if (result.error.code === "INVALID_CODE") {
toast.error("Invalid verification code");
return;
}