# \[solved\] Can't connect with two factor

**URL:** <https://forum.gitea.com/t/solved-cant-connect-with-two-factor/942>\
**Category:** Install/Maintain/Configure\
**Created:** [February 14, 2019, 8:42pm UTC](https://forum.gitea.com/t/solved-cant-connect-with-two-factor/942 "2019-02-14T20:42:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Speculos](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/speculos/32/4802_2.png) [@Speculos](https://forum.gitea.com/u/Speculos)\
**Post date:** [February 14, 2019, 8:42pm UTC](https://forum.gitea.com/t/solved-cant-connect-with-two-factor/942/1 "2019-02-14T20:42:38Z")

</div>

Hi,

I’m hosting a Gitea instance with docker and postgresl server (also docker).

And for some reason my two factor authentication won’t work throught Authy application (on ios), and the only emergency code I’ve code won’t work either.

How can I regain access to my Gitea ?

Can you point me in the good direction ?

Best regards.

Speculos

---

<div class="post-metadata">

**Author:** ![Speculos](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/speculos/32/4802_2.png) [@Speculos](https://forum.gitea.com/u/Speculos)\
**Post date:** [February 14, 2019, 9:40pm UTC](https://forum.gitea.com/t/solved-cant-connect-with-two-factor/942/2 "2019-02-14T21:40:32Z")

</div>

From this support [Disable 2FA from commandline](https://forum.gitea.com/t/disable-2fa-from-commandline/138)

I’ve managed to delete two factor.

See ya 😉

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [February 14, 2019, 10:26pm UTC](https://forum.gitea.com/t/solved-cant-connect-with-two-factor/942/3 "2019-02-14T22:26:51Z")

</div>

The issue of 2FA not working could also be related to a time sync issue with your server.

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [February 14, 2019, 10:26pm UTC](https://forum.gitea.com/t/solved-cant-connect-with-two-factor/942/4 "2019-02-14T22:26:54Z")

</div>

Closed on February 14, 2019, 10:26pm UTC


