summaryrefslogtreecommitdiff
path: root/Project-Unite/Controllers
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-03-24 20:45:16 -0400
committerMichael <[email protected]>2017-03-24 20:45:16 -0400
commit38640e179bc8f16348befdb9e117e057e8dbc29c (patch)
treecd1f9b29cbbe60b8ea8a15a9f8acbcc1a93e42fb /Project-Unite/Controllers
parent32b46c03cd7793714721126acb14e19cdec2c732 (diff)
downloadproject-unite-38640e179bc8f16348befdb9e117e057e8dbc29c.tar.gz
project-unite-38640e179bc8f16348befdb9e117e057e8dbc29c.tar.bz2
project-unite-38640e179bc8f16348befdb9e117e057e8dbc29c.zip
wow.
Diffstat (limited to 'Project-Unite/Controllers')
-rw-r--r--Project-Unite/Controllers/AdminController.cs5
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");
}