Cannot use 2FA to reset password

I just installed Discourse on a VPS and recovered from a backup. I have 2FA on my account and when I sign on using the email (and link it sends me) w/o using password, it will ask for 2FA code which does work. But when I want request to reset to password, I open the link and it asks for 2FA which I put in, and it gives me,

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

Any solution?

2 Likes

Yes I ran into this bug too @featheredtoast @sam it is quite bad

3 Likes

Alright, I guess signing in through 2FA will work until it’s fixed.

I tried this but it gave me a syntax error,

image

2 Likes

Oh dear that was rather bad. Looks like we were using an incorrect alias here where we shouldn’t be. This should fix it. :monkey:

6 Likes

Stupid question; how do I implement this fix? Thank you

Visit your site’s upgrade page: /admin/upgrade

3 Likes

This topic was automatically closed after 32 hours. New replies are no longer allowed.