コード例 #1
0
        //checkemailaddress
        public bool CheckEmailAddress(string userEmail)
        {
            if (string.IsNullOrEmpty(userEmail)) return false;

            if (_authRepository.CheckEmail(userEmail))
            {
                Account account = _authRepository.GetByEmail(userEmail);
                if (account == null) return false;
                _emailService.ResetPassword(account);
                return true;
            };

            return false;
        }