# Issue with two factor authentication on community

**URL:** <https://community.unix.com/t/issue-with-two-factor-authentication-on-community/379517>\
**Category:** Discourse\
**Created:** [August 7, 2020, 6:26pm UTC](https://community.unix.com/t/issue-with-two-factor-authentication-on-community/379517 "2020-08-07T18:26:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![erroruploading](https://community.unix.com/letter_avatar/erroruploading/32/6_449c533f586939b6e5f246632a46421f.png) [@erroruploading](https://community.unix.com/u/erroruploading)\
**Post date:** [August 7, 2020, 6:26pm UTC](https://community.unix.com/t/issue-with-two-factor-authentication-on-community/379517/1 "2020-08-07T18:26:59Z")

</div>

Hope this is right category I can post for my issue on the [community.unix.com](http://community.unix.com) website.  
getting this error when I am entering my 2FA code. can you fix this for me?

**Invalid authentication code. Each code can only be used once.**

![image](https://community.unix.com/uploads/default/original/2X/b/b586767e84ad9ff7062a5adde32d9331a05c9971.png)

---

<div class="post-metadata">

**Author:** ![Neo](https://community.unix.com/user_avatar/community.unix.com/neo/32/22838_2.png) [@Neo](https://community.unix.com/u/Neo)\
**Post date:** [August 9, 2020, 5:04am UTC](https://community.unix.com/t/issue-with-two-factor-authentication-on-community/379517/2 "2020-08-09T05:04:41Z")

</div>

This is an issue with Discourse, not with this site.

Kindly post issues related to problems with Discourse here:

I suggest you try to duplicate your issue on the meta discourse site before posting there.

> **[support](https://meta.discourse.org/c/support/6)**
>
> The category for general support questions on using your Discourse site.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://community.unix.com/uploads/default/original/2X/c/c7e9e16a595259edafe88615719d5c5dcda035c2.png) [@system](https://community.unix.com/u/system)\
**Post date:** [October 8, 2020, 5:04am UTC](https://community.unix.com/t/issue-with-two-factor-authentication-on-community/379517/3 "2020-10-08T05:04:43Z")

</div>

Closed on October 8, 2020, 5:04am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![DiscourseDuck](https://community.unix.com/user_avatar/community.unix.com/discourseduck/32/14009_2.png) [@DiscourseDuck](https://community.unix.com/u/DiscourseDuck)\
**Post date:** [December 27, 2022, 10:17am UTC](https://community.unix.com/t/issue-with-two-factor-authentication-on-community/379517/4 "2022-12-27T10:17:10Z")

</div>

OK.

This is fixed.

It's not a Discourse issue. It was a system clock issue.

I updated the system clock on the server and also updated the system clock on my mac and it worked perfectly.

See also:

> **[Two factor auth consistently returns invalid authentication code](https://meta.discourse.org/t/two-factor-auth-consistently-returns-invalid-authentication-code/84979/5)**
>
> I recently had the same issue on a forum I host, and in the end I figured out that it occurred because my server time was slightly off. Try comparing the time of your server (including seconds) to network time (e.g. via time.is), and if it’s...
