Esempio n. 1
0
        public ActionResult Reset()
        {
            AccountResetVM model = new AccountResetVM();

            TryUpdateModel(model);

            UsersService usersService = new UsersService();
            User         user         = usersService.GetAll(u => u.Email == model.Email).FirstOrDefault();

            user.Password = Guid.NewGuid().ToString();

            usersService.Save(user);

            EmailService.SendEmail(user, ControllerContext);

            return(View(model));
        }
Esempio n. 2
0
        public ActionResult Reset(string str)
        {
            AccountResetVM model = new AccountResetVM();

            return(View(model));
        }