AIMS_BD_IATI.WebAPI.Models.Authentication.CustomMembershipProvider.ValidateUser C# (CSharp) Method

ValidateUser() public method

public ValidateUser ( string username, string password ) : bool
username string
password string
return bool
        public override bool ValidateUser(string username, string password)
        {
            User user = new User();
            user.LoginId = username;
            user.Password = getMd5Hash(password);

            try
            {
                if (_userAgent.GetUserListByCraiteria(user).Count > 0)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            catch 
            {
                return false;
            }
        }

Same methods

CustomMembershipProvider::ValidateUser ( string username, string password, User &user ) : bool