mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 11:21:47 -05:00
Fix registration bug.
This commit is contained in:
parent
6fc0e6fa29
commit
32d02caddf
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ public async Task<ActionResult> Register(RegisterViewModel model)
|
|||
string code = await UserManager.GenerateEmailConfirmationTokenAsync(user.Id);
|
||||
var callbackUrl = Url.Action("ConfirmEmail", "Account", new { userId = user.Id, code = code }, protocol: Request.Url.Scheme);
|
||||
await UserManager.SendEmailAsync(user.Id, "Confirm your account", "Please confirm your account by clicking <a href=\"" + callbackUrl + "\">here</a>");
|
||||
UserManager.AddToRole(user.Id, ACL.LowestPriorityRole().Id);
|
||||
UserManager.AddToRole(user.Id, ACL.LowestPriorityRole().Name);
|
||||
return RedirectToAction("Index", "Home");
|
||||
}
|
||||
AddErrors(result);
|
||||
|
|
Loading…
Reference in a new issue