diff options
| author | Michael <[email protected]> | 2017-03-24 20:45:16 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-24 20:45:16 -0400 |
| commit | 38640e179bc8f16348befdb9e117e057e8dbc29c (patch) | |
| tree | cd1f9b29cbbe60b8ea8a15a9f8acbcc1a93e42fb /Project-Unite | |
| parent | 32b46c03cd7793714721126acb14e19cdec2c732 (diff) | |
| download | project-unite-38640e179bc8f16348befdb9e117e057e8dbc29c.tar.gz project-unite-38640e179bc8f16348befdb9e117e057e8dbc29c.tar.bz2 project-unite-38640e179bc8f16348befdb9e117e057e8dbc29c.zip | |
wow.
Diffstat (limited to 'Project-Unite')
| -rw-r--r-- | Project-Unite/Controllers/AdminController.cs | 5 | ||||
| -rw-r--r-- | Project-Unite/Views/Admin/CreateUser.cshtml | 2 |
2 files changed, 6 insertions, 1 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"); } 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 @@ </tr> <tr> <td></td> - <td><input type="submit" value="Add" /></td> + <td><input class="btn btn-primary" type="submit" value="Add" /></td> </tr> </table> } |
