2FA error "An error occurred while verifying 2FA code" #4068
Replies: 4 comments 3 replies
-
|
Hi @sylvaindeloux! I'm Dosu and I’m helping the dokploy team. This is a known issue caused by changes to the Option A: Restore the original secret (try this first) Set the BETTER_AUTH_SECRET=better-auth-secret-123456789Then restart Dokploy. This should allow your existing 2FA to work again. Option B: Reset 2FA in the database If that doesn't work, you can disable 2FA directly: -- Find your user ID first
SELECT id, email FROM "user";
-- Delete 2FA records for your user
DELETE FROM two_factor WHERE "userId" = '<your_user_id>';
-- Disable 2FA flag
UPDATE "user" SET two_factor_enabled = false WHERE id = '<your_user_id>';After this, you should be able to log in without 2FA and can re-enable it if desired. See this issue for more details on the root cause. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I can't access my Dokploy instance because of 2FA (504 error on
/api/auth/two-factor/verify-totpcall).I tried the procedure described on #1337 but I don't have an
authtable:I'm on 0.28.8.
How can I disable 2FA?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions