Пример #1
0
        public void RecoverPassword(string Email)
        {
            SPKTCore.Core.Domain.Account account = _accountRepository.GetAccountByEmail(Email);

            if (account != null)
            {
                _email.SendPasswordReminderEmail(account.Email, account.Password, account.UserName);
                _view.ShowRecoverPasswordPanel(false);
                _view.ShowMessage("An email was sent to your account!");
            }
            else
            {
                _view.ShowRecoverPasswordPanel(true);
                _view.ShowMessage("We couldn't find the account you requested.");
            }
        }