# User cannot log in with 2-factor auth. Says "each code can only be used once"

**URL:** https://meta.discourse.org/t/user-cannot-log-in-with-2-factor-auth-says-each-code-can-only-be-used-once/175771
**Category:** Support
**Created:** [January 11, 2021, 3:06pm UTC](https://meta.discourse.org/t/user-cannot-log-in-with-2-factor-auth-says-each-code-can-only-be-used-once/175771 "2021-01-11T15:06:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Alon1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alon1/32/197167_2.png) [@Alon1](https://meta.discourse.org/u/Alon1)
#### Post date: [January 11, 2021, 3:06pm UTC](https://meta.discourse.org/t/user-cannot-log-in-with-2-factor-auth-says-each-code-can-only-be-used-once/175771/1 "2021-01-11T15:06:35Z")

</div>

The user was connected with 2-factor auth before. Suddenly he was denied login (after connecting from another device). Trying to solve this i as admin deleted his old account (it was new, no replies yet so we didn’t mind), but the problem repeats when he tried to create a new account:

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/d/eddca18ce18cf925261c4d5b8ad88dcbae89d189.png)  
the user deleted the account from his google authenticator app, and re-scanned the new QR code. that didn’t help.  
what “code” is being used again?

Discourse version: 9da9b2e1

---

<div class="post-metadata">

### Author: ![Alon1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alon1/32/197167_2.png) [@Alon1](https://meta.discourse.org/u/Alon1)
#### Post date: [January 11, 2021, 5:25pm UTC](https://meta.discourse.org/t/user-cannot-log-in-with-2-factor-auth-says-each-code-can-only-be-used-once/175771/2 "2021-01-11T17:25:32Z")

</div>

Looking for clues for this error message:

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/2/02dd1d0509d124eac5eeb95bdc5cfe3859da96f9.png)

---

<div class="post-metadata">

### Author: ![red-giant](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@red-giant](https://meta.discourse.org/u/red-giant)
#### Post date: [January 7, 2024, 7:49am UTC](https://meta.discourse.org/t/user-cannot-log-in-with-2-factor-auth-says-each-code-can-only-be-used-once/175771/3 "2024-01-07T07:49:57Z")

</div>

It happened still with me when I was creating new account on Unix Linux Community Forum. I think the 2-Auth there is bugged and not supported
