Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Recovery Codes does not update #113

Closed
KevinLedge opened this issue Mar 21, 2024 · 2 comments
Closed

Generate Recovery Codes does not update #113

KevinLedge opened this issue Mar 21, 2024 · 2 comments
Assignees
Labels

Comments

@KevinLedge
Copy link

KevinLedge commented Mar 21, 2024

There is a bug when you have Two Factor Auth enabled and press the 'reset recovery codes' button.

GenerateRecoveryCodes.cshtml.cs
var recoveryCodes = await _userManager.GenerateNewTwoFactorRecoveryCodesAsync(user, 10);

This line updates the timestamp in AspNetUsers on the RecoveryCodes TokenName row but does not update the TokenValue.

If I manually delete the row before calling that line then everything works.

I am running version 8 of ElCamino and Microsoft.AspNetCore.Identity.UI 8.0.3.

I created a new user to test this.

@dlmelendez dlmelendez self-assigned this Apr 7, 2024
@dlmelendez dlmelendez added the bug label Apr 7, 2024
@dlmelendez
Copy link
Owner

Fixing this bug in 9.0 release.

@dlmelendez
Copy link
Owner

Fixed in v9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants