Exemplo n.º 1
0
        public ActionResult ResetPassword(string token)
        {
            if (string.IsNullOrEmpty(token))
                throw new HttpException((int)HttpStatusCode.NotFound, "not found");

            ResetPasswordRequest request = _membershipService.GetActivePasswordResetRequestByToken(token);

            if (request == null)
                throw new HttpException((int)HttpStatusCode.NotFound, "not found");

            ResetPasswordModel model = new ResetPasswordModel();
            model.Init(_membershipService.MinPasswordLength);
            model.Token = request.Token;

            return View(model);
        }