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
The ForgotPassword.cshtml.cs should also be using the SendPasswordResetCodeAsync inside the implementation of the emailsender we sould generate the callbackUrl.
The text was updated successfully, but these errors were encountered:
The
IdentityApiEndpointRouteBuilderExtensions
should never create a ConfirmationLink but must be dealing with codes only.When we see the implementation of
IEmailSender<TUser>
We see
SendConfirmationLinkAsync
,SendPasswordResetCodeAsync
andSendPasswordResetLinkAsync
Here the
SendPasswordResetLinkAsync
and theSendConfirmationLinkAsync
should be removed and aSendConfirmationCodeAsync
should be added.The
SendPasswordResetCodeAsync
is used in the ApiEndpoint butSendPasswordResetLinkAsync
is never used in the Api.Only in the UI implementation.
When we want to generate a link instead of using the code, we should generating the link inside the
IEmailSender<TUser>
implementation.So only
SendConfirmationCodeAsync
andSendPasswordResetCodeAsync
sould be sufficient in theIEmailSender<TUser>
interfaceIdentityApiEndpointRouteBuilderExtensions.cs
aspnetcore/src/Identity/Core/src/IdentityApiEndpointRouteBuilderExtensions.cs
Lines 214 to 217 in 65f485e
ForgotPassword.cshtml.cs
aspnetcore/src/Identity/UI/src/Areas/Identity/Pages/V5/Account/ForgotPassword.cshtml.cs
Lines 75 to 83 in 65f485e
The ForgotPassword.cshtml.cs should also be using the
SendPasswordResetCodeAsync
inside the implementation of the emailsender we sould generate the callbackUrl.The text was updated successfully, but these errors were encountered: