Esempio n. 1
0
        public bool Recover(string email)
        {
            try
            {
                IList <int> listEmail = _recoverPasswordRepository.EmailExist(email);

                if (listEmail.Count > 0)
                {
                    string password = _recoverPasswordRepository.RecoverPassword(email);

                    _sendEmail.Email(email, password);
                }

                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }