dlmelendez / identityazuretable

This project provides a high performance cloud solution for ASP.NET Identity Core using Azure Table storage replacing the Entity Framework / MSSQL provider.
MIT License
105 stars 27 forks source link

Generate Recovery Codes does not update #113

Open KevinLedge opened 7 months ago

KevinLedge commented 7 months ago

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.