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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've come across a lot of code that looks like this sample from the repo:
aspnetcore/src/Security/samples/Identity.ExternalClaims/Pages/Account/ForgotPassword.cshtml.cs
Lines 38 to 39 in 53682c0
Am I crazy, or could that second line simply use
user.EmailConfirmed
instead of callingIsEmailConfirmedAsync()
:aspnetcore/src/Identity/Extensions.Stores/src/IdentityUser.cs
Line 91 in 728110e
I've spelunked through the code and I think so, but it's a bit hard to follow, but it seems as though IsEmailConfirmedAsync ...
aspnetcore/src/Identity/Extensions.Core/src/UserManager.cs
Lines 1513 to 1522 in ce16ff0
... just ends up returning the value of
EmailConfirmed
:aspnetcore/src/Identity/Extensions.Stores/src/UserStoreBase.cs
Lines 472 to 481 in bfec2c1
So is there some reason we can't just check
user.EmailConfirmed
?Beta Was this translation helpful? Give feedback.
All reactions