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

ReSendEmailConfirmation has been added #1064

Merged
merged 3 commits into from
May 4, 2023

Conversation

valerabad
Copy link
Contributor

No description provided.

@valerabad valerabad requested a review from a team April 24, 2023 17:07
@valerabad valerabad self-assigned this Apr 24, 2023
@valerabad valerabad linked an issue Apr 24, 2023 that may be closed by this pull request
Copy link
Contributor

@VadymLevkovskyi VadymLevkovskyi left a 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.

ActionUrl = callBackUrl,
};
var content = await renderer.GetHtmlPlainStringAsync(RazorTemplates.ConfirmEmail, userActionViewModel);
await emailSender.SendAsync(email, subject, content);
Copy link
Contributor

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?

Copy link
Contributor Author

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

@DmyMi DmyMi force-pushed the develop branch 7 times, most recently from 8fdf2a5 to f6a4108 Compare April 25, 2023 15:47
@valerabad valerabad force-pushed the baditsa/resend-confirmation-email branch 3 times, most recently from 5924096 to bbdc1c0 Compare May 2, 2023 14:37
@valerabad valerabad requested review from VadymLevkovskyi and DmyMi May 3, 2023 09:17
var user = await userManager.FindByEmailAsync(User.Identity.Name);
var token = await userManager.GenerateEmailConfirmationTokenAsync(user);

await SendConfirmEmailProcess(user, RazorTemplates.ChangeEmail, new { userId = user.Id, token });
Copy link
Contributor

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?

@valerabad valerabad force-pushed the baditsa/resend-confirmation-email branch from bbdc1c0 to 4b68eec Compare May 3, 2023 10:05
@sonarqubecloud
Copy link

sonarqubecloud bot commented May 3, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

8.0% 8.0% Coverage
0.0% 0.0% Duplication

@DmyMi DmyMi merged commit 4be25b2 into develop May 4, 2023
@DmyMi DmyMi deleted the baditsa/resend-confirmation-email branch May 4, 2023 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Confirmation of registration
3 participants