-
Notifications
You must be signed in to change notification settings - Fork 0
/
Comments.txt
23 lines (13 loc) · 1.33 KB
/
Comments.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Account Controller :
//await SignInManager.SignInAsync(user, isPersistent:false, rememberBrowser:false);
// For more information on how to enable account confirmation and password reset please visit http://go.microsoft.com/fwlink/?LinkID=320771
// Send an email with this link
//string code = await UserManager.GenerateEmailConfirmationTokenAsync(user.Id);
//var callbackUrl = Url.Action("ConfirmEmail", "Account", new { userId = user.Id, code = code }, protocol: Request.Url.Scheme);
//IdentityMessage ConfirmEmail = new IdentityMessage();
//ConfirmEmail.Destination = model.Email;
//ConfirmEmail.Body = "Please confirm your account by clicking <a href=\"" + callbackUrl + "\">here</a>";
//ConfirmEmail.Subject = "Confirm your email for your account from PHSS.co.za";
//UserManager.SendEmail(user.Id, "Confirm your account", "Please confirm your account by clicking <a href=\"" + callbackUrl + "\">here</a>");
//await UserManager.SendEmailAsync(user.Id, "Confirm your account", "Please confirm your account by clicking <a href=\"" + callbackUrl + "\">here</a>");
//return RedirectToAction("Index", "Home");