Add details to emails
A few clarifications
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Data.SqlTypes;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Security;
|
||||
using MileageTraker.Web.Attributes;
|
||||
@@ -149,6 +148,7 @@ namespace MileageTraker.Web.Controllers
|
||||
return View(viewModel);
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public JsonResult SendInvite(Guid userId)
|
||||
{
|
||||
var user = DataService.GetUser(userId);
|
||||
@@ -158,6 +158,17 @@ namespace MileageTraker.Web.Controllers
|
||||
return Json(true, JsonRequestBehavior.AllowGet);
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public ActionResult SendResetPassword(Guid userId)
|
||||
{
|
||||
var user = DataService.GetUser(userId);
|
||||
var resetPasswordUrl = ResetPassword(user);
|
||||
var email = new EmailNotificationService();
|
||||
email.SendResetPassword(user, resetPasswordUrl);
|
||||
TempData["StatusMessage"] = "Reset password sent to User " + user.Username + " at " + user.Email;
|
||||
return RedirectToAction("Details", new { id = userId});
|
||||
}
|
||||
|
||||
[Authorize(Roles = "Developer")]
|
||||
public ActionResult InviteUninitialized()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user