Skip to content

Commit eaed7db

Browse files
committed
Updates
1 parent 5341c5e commit eaed7db

File tree

2 files changed

+28
-24
lines changed

2 files changed

+28
-24
lines changed

aspnetcore/blazor/security/account-confirmation-and-password-recovery.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,20 @@ public class EmailSender(IOptions<AuthMessageSenderOptions> optionsAccessor,
8787

8888
public AuthMessageSenderOptions Options { get; } = optionsAccessor.Value;
8989

90-
public Task SendConfirmationLinkAsync(ApplicationUser user, string email,
91-
string confirmationLink) => SendEmailAsync(email, "Confirm your email",
92-
"Please confirm your account by " +
93-
$"<a href='{confirmationLink}'>clicking here</a>.");
94-
95-
public Task SendPasswordResetLinkAsync(ApplicationUser user, string email,
96-
string resetLink) => SendEmailAsync(email, "Reset your password",
97-
$"Please reset your password by <a href='{resetLink}'>clicking here</a>.");
98-
99-
public Task SendPasswordResetCodeAsync(ApplicationUser user, string email,
100-
string resetCode) => SendEmailAsync(email, "Reset your password",
101-
$"Please reset your password using the following code: {resetCode}");
90+
public Task SendConfirmationLinkAsync(AppUser user, string email,
91+
string confirmationLink) => SendEmailAsync(email, "Confirm your email",
92+
"<html lang=\"en\"><head></head><body>Please confirm your account by " +
93+
$"<a href='{confirmationLink}'>clicking here</a>.</body></html>");
94+
95+
public Task SendPasswordResetLinkAsync(AppUser user, string email,
96+
string resetLink) => SendEmailAsync(email, "Reset your password",
97+
"<html lang=\"en\"><head></head><body>Please reset your password by " +
98+
$"<a href='{resetLink}'>clicking here</a>.</body></html>");
99+
100+
public Task SendPasswordResetCodeAsync(AppUser user, string email,
101+
string resetCode) => SendEmailAsync(email, "Reset your password",
102+
"<html lang=\"en\"><head></head><body>Please reset your password " +
103+
$"using the following code:<br>{resetCode}</body></html>");
102104

103105
public async Task SendEmailAsync(string toEmail, string subject, string message)
104106
{

aspnetcore/blazor/security/webassembly/standalone-with-identity/account-confirmation-and-password-recovery.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,20 @@ public class EmailSender(IOptions<AuthMessageSenderOptions> optionsAccessor,
9393

9494
public AuthMessageSenderOptions Options { get; } = optionsAccessor.Value;
9595

96-
public Task SendConfirmationLinkAsync(AppUser user, string email,
97-
string confirmationLink) => SendEmailAsync(email, "Confirm your email",
98-
"Please confirm your account by " +
99-
$"<a href='{confirmationLink}'>clicking here</a>.");
100-
101-
public Task SendPasswordResetLinkAsync(AppUser user, string email,
102-
string resetLink) => SendEmailAsync(email, "Reset your password",
103-
$"Please reset your password by <a href='{resetLink}'>clicking here</a>.");
104-
105-
public Task SendPasswordResetCodeAsync(AppUser user, string email,
106-
string resetCode) => SendEmailAsync(email, "Reset your password",
107-
$"Please reset your password using the following code: {resetCode}");
96+
public Task SendConfirmationLinkAsync(AppUser user, string email,
97+
string confirmationLink) => SendEmailAsync(email, "Confirm your email",
98+
"<html lang=\"en\"><head></head><body>Please confirm your account by " +
99+
$"<a href='{confirmationLink}'>clicking here</a>.</body></html>");
100+
101+
public Task SendPasswordResetLinkAsync(AppUser user, string email,
102+
string resetLink) => SendEmailAsync(email, "Reset your password",
103+
"<html lang=\"en\"><head></head><body>Please reset your password by " +
104+
$"<a href='{resetLink}'>clicking here</a>.</body></html>");
105+
106+
public Task SendPasswordResetCodeAsync(AppUser user, string email,
107+
string resetCode) => SendEmailAsync(email, "Reset your password",
108+
"<html lang=\"en\"><head></head><body>Please reset your password " +
109+
$"using the following code:<br>{resetCode}</body></html>");
108110

109111
public async Task SendEmailAsync(string toEmail, string subject, string message)
110112
{

0 commit comments

Comments
 (0)