Skip to content

Commit a05d942

Browse files
committed
Updates
1 parent 92c43e7 commit a05d942

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
@@ -89,18 +89,20 @@ public class EmailSender(IOptions<AuthMessageSenderOptions> optionsAccessor,
8989

9090
public AuthMessageSenderOptions Options { get; } = optionsAccessor.Value;
9191

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

105107
public async Task SendEmailAsync(string toEmail, string subject, string message)
106108
{

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)