public ActionResult ResetRequest(string email) { var user = DatabaseUserService.GetByEmail(email); if (user == null) { return(Index()); } EmailService.SendReset(user); return(ResetRequestSent()); }
public static Login GetLogin(string email) { var user = DatabaseUserService.GetByEmail(email); return(user == null ? null : DatabaseLoginService.GetByUserId(user.UserId)); }