-
Notifications
You must be signed in to change notification settings - Fork 6
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
ReSendEmailConfirmation has been added #1064
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably missed Authorize, mail send failure processing and minor code style issues.
OutOfSchool/OutOfSchool.IdentityServer/Controllers/AccountController.cs
Outdated
Show resolved
Hide resolved
OutOfSchool/OutOfSchool.IdentityServer/Controllers/AccountController.cs
Outdated
Show resolved
Hide resolved
ActionUrl = callBackUrl, | ||
}; | ||
var content = await renderer.GetHtmlPlainStringAsync(RazorTemplates.ConfirmEmail, userActionViewModel); | ||
await emailSender.SendAsync(email, subject, content); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await emailSender.SendAsync(email, subject, content);
- I see no check for unsuccessful send. Just curious - how fails are processed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've rechecked: in the nested method SendAsync() there is try...catch
OutOfSchool/OutOfSchool.IdentityServer/Controllers/AccountController.cs
Outdated
Show resolved
Hide resolved
8fdf2a5
to
f6a4108
Compare
5924096
to
bbdc1c0
Compare
var user = await userManager.FindByEmailAsync(User.Identity.Name); | ||
var token = await userManager.GenerateEmailConfirmationTokenAsync(user); | ||
|
||
await SendConfirmEmailProcess(user, RazorTemplates.ChangeEmail, new { userId = user.Id, token }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe also add new email to passed data?
bbdc1c0
to
4b68eec
Compare
SonarCloud Quality Gate failed. |
No description provided.