public ActionResult RequestPasswordReset(RequestPasswordResetPageModel viewModel)
        {
            var user = _userService.GetByUsername(viewModel.Email);

            if (user == null)
                ModelState.AddModelError("Email", string.Format("The email {0} is not registered in the system", viewModel.Email));

            if (user != null)
            {
                if (user.ActivationToken != null)
                    ModelState.AddModelError("Email", "The account must be activated first, please click the link in the registration email or contact the administrator");
            }

            if (!ModelState.IsValid)
                return View(viewModel);

            user.PasswordRecoveryToken = Guid.NewGuid();
            _userService.Update(user);

            SendRequestResetPasswordEmail(user);

            return RedirectToAction("Index", "Home")
                .WithSuccessMessage(string.Format("Email with reset password link has been sent. Please check your email."));
        }
        public ActionResult RequestPasswordReset()
        {
            var viewModel = new RequestPasswordResetPageModel { };

            return View(viewModel);
        }