You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you enable 2FA, new scratch token is generated and printed in message "Your account has been enrolled into two-factor authentication. Store your scratch token (XXXXXXXX) in a safe place as it is only shown once!".
But for some reason this token is wrong and can't be used, invalid token message appears.
But if you generate new scratch-token, it will be okay and can be used as scratch-token. And message is "Your scratch token is now XXXXXXXX. Store it in a safe place."
Screenshots
The text was updated successfully, but these errors were encountered:
I found place in code where Scratch Token is generated twice (new one overwrite old one, but old is outputed), if noone is working on this issue - i'll fix and PR in few hours.
SagePtr
added a commit
to SagePtr/gitea
that referenced
this issue
May 2, 2019
Description
When you enable 2FA, new scratch token is generated and printed in message "Your account has been enrolled into two-factor authentication. Store your scratch token (XXXXXXXX) in a safe place as it is only shown once!".
But for some reason this token is wrong and can't be used, invalid token message appears.
But if you generate new scratch-token, it will be okay and can be used as scratch-token. And message is "Your scratch token is now XXXXXXXX. Store it in a safe place."
Screenshots
The text was updated successfully, but these errors were encountered: