diff options
Diffstat (limited to 'Project-Unite/Controllers')
| -rw-r--r-- | Project-Unite/Controllers/AdminController.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Project-Unite/Controllers/AdminController.cs b/Project-Unite/Controllers/AdminController.cs index 2e64095..a865ba7 100644 --- a/Project-Unite/Controllers/AdminController.cs +++ b/Project-Unite/Controllers/AdminController.cs @@ -102,6 +102,11 @@ namespace Project_Unite.Controllers db.SaveChanges(); var uman = HttpContext.GetOwinContext().GetUserManager<ApplicationUserManager>(); uman.AddToRole(user.Id, ACL.LowestPriorityRole().Name); + uman.SendEmail(user.Id, "Welcome to the Project: Unite open alpha.", $@"**Hey there, {user.DisplayName}! + +Michael here - it's finally happening. Project: Unite is coming together and it's time we merge everyone's user accounts. + +Unlike previous ShiftOS site revamps, your account got migrated over. However, there's one thing you need to do. You need to [reset your password]({Url.Action("ForgotPassword", "Account")})! Just click that link and follow the instructions and we'll send you another email with details on how to get into your account."); return RedirectToAction("Users"); } |
