Skip to content

Commit 21c3579

Browse files
committed
Adding a Encode
1 parent 18e4603 commit 21c3579

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/StsServerIdentity/Controllers/AccountController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public async Task<IActionResult> Register(RegisterViewModel model, string return
272272
// WebEncoders.Base64UrlEncode(Encoding.UTF8.GetBytes(code));
273273
//var callbackUrl = Url.Action("ConfirmEmail", "Account", new { userId = user.Id, code = code }, protocol: HttpContext.Request.Scheme);
274274
//await _emailSender.SendEmailAsync(model.Email, "Confirm your account",
275-
// $"Please confirm your account by clicking this link: <a href='{callbackUrl}'>link</a>");
275+
// $"Please confirm your account by clicking this link: <a href='{HtmlEncoder.Default.Encode(callbackUrl)}'>link</a>");
276276
//await _signInManager.SignInAsync(user, isPersistent: false);
277277
//_logger.LogInformation(3, "User created a new account with password.");
278278
return RedirectToLocal(returnUrl);

0 commit comments

Comments
 (0)