From 32d02caddf99637f4bdf83ade374a7eb27dc6a47 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 21 Mar 2017 12:54:00 -0400 Subject: [PATCH] Fix registration bug. --- Project-Unite/Controllers/AccountController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ public async Task 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 here"); - UserManager.AddToRole(user.Id, ACL.LowestPriorityRole().Id); + UserManager.AddToRole(user.Id, ACL.LowestPriorityRole().Name); return RedirectToAction("Index", "Home"); } AddErrors(result);