Skip to content
Discussion options

You must be logged in to vote

A real person to the rescue.

  1. Connect to your server via ssh
  2. Find out your postgres container id: docker ps -qf "name=^dokploy-postgres"
  3. Connect to it interactively: docker exec -it <id> /bin/bash
  4. Inside of the container, connect to database: psql -U dokploy
  5. Verify 2fa is enabled: select id, two_factor_enabled from "user";, witness something like this:
    id     | two_factor_enabled
-----------+--------------------
 <user_id> | t
(1 row)

"t" means "true" here
6. Update the table to turn 2fa off for this user: UPDATE "user" SET two_factor_enabled = false where id = '<user_id>'
7. Remove the dangling 2fa: DELETE FROM two_factor WHERE user_id = '<user_id>'

Should work now!

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@dosubot
Comment options

@luixo
Comment options

Answer selected by ZaLiTHkA
@ZaLiTHkA
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants