diff options
| -rw-r--r-- | Project-Unite/Controllers/AccountController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Project-Unite/Controllers/AccountController.cs b/Project-Unite/Controllers/AccountController.cs index d742484..e23572d 100644 --- a/Project-Unite/Controllers/AccountController.cs +++ b/Project-Unite/Controllers/AccountController.cs @@ -190,7 +190,7 @@ The addressed used to send this message is not a no-reply address. In fact, my n 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); |
