public ActionResult ResetRequest(string email)
        {
            var user = DatabaseUserService.GetByEmail(email);

            if (user == null)
            {
                return(Index());
            }

            EmailService.SendReset(user);
            return(ResetRequestSent());
        }
예제 #2
0
        public static Login GetLogin(string email)
        {
            var user = DatabaseUserService.GetByEmail(email);

            return(user == null ? null : DatabaseLoginService.GetByUserId(user.UserId));
        }