From 38640e179bc8f16348befdb9e117e057e8dbc29c Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 24 Mar 2017 20:45:16 -0400 Subject: [PATCH] wow. --- Project-Unite/Controllers/AdminController.cs | 5 +++++ Project-Unite/Views/Admin/CreateUser.cshtml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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(); 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"); } diff --git a/Project-Unite/Views/Admin/CreateUser.cshtml b/Project-Unite/Views/Admin/CreateUser.cshtml index b8bb4ee..d4f9d0b 100644 --- a/Project-Unite/Views/Admin/CreateUser.cshtml +++ b/Project-Unite/Views/Admin/CreateUser.cshtml @@ -22,7 +22,7 @@ - + }