SagaDB.MSSQLUserDB.CheckPassword C# (CSharp) Method

CheckPassword() public method

public CheckPassword ( string user, string password ) : bool
user string
password string
return bool
        public bool CheckPassword(string user, string password)
        {
            byte[] unibytes = encoder.GetBytes(password);
            //byte[] hash = md5.ComputeHash(unibytes);
            User tmpUser = GetUser(user);
            if(tmpUser == null) return false;
            return (tmpUser.Password == password);
        }