# 2FA enabling not working on Gitea 1.2 clean install

**URL:** <https://forum.gitea.com/t/2fa-enabling-not-working-on-gitea-1-2-clean-install/87>\
**Category:** Install/Maintain/Configure\
**Created:** [October 2, 2017, 9:08am UTC](https://forum.gitea.com/t/2fa-enabling-not-working-on-gitea-1-2-clean-install/87 "2017-10-02T09:08:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![quimmontal](https://avatars.discourse-cdn.com/v4/letter/q/34f0e0/32.png) [@quimmontal](https://forum.gitea.com/u/quimmontal)\
**Post date:** [October 2, 2017, 9:08am UTC](https://forum.gitea.com/t/2fa-enabling-not-working-on-gitea-1-2-clean-install/87/1 "2017-10-02T09:08:16Z")

</div>

- Gitea version (or commit ref): gitea-1.2-linux-amd64
- Git version: 2.1.4
- Operating system: Debian 8
- Database (use `[x]`):
  - PostgreSQL
  - MySQL
  - MSSQL
  - SQLite

- Can you reproduce the bug at [https://try.gitea.io](https://try.gitea.io):
  - Yes (provide example URL)
  - No
  - Not relevant

- Log gist:

## Description

On clean install with the latest version, 1.2, in a debian 8 server, when trying to enable 2FA (with QR or secret) it just gives an error of “That passcode is invalid. Try again.” Does anyone know about this issue why it is happening and what to do? Seems weird that a clean install is already failing…  
…

## Screenshots

 ![image](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/1X/203914d31f27fab44f523dbfd8928800c0399096.png)

---

<div class="post-metadata">

**Author:** ![lafriks](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lafriks/32/3004_2.png) [@lafriks](https://forum.gitea.com/u/lafriks)\
**Post date:** [October 16, 2017, 4:06pm UTC](https://forum.gitea.com/t/2fa-enabling-not-working-on-gitea-1-2-clean-install/87/2 "2017-10-16T16:06:12Z")

</div>

Seems to be working fine for me. Check that your servers time is correct
