ScrewTurn.Wiki.UsersStorageProvider.TestAccount C# (CSharp) Method

TestAccount() public method

Tests a Password for a User account.
If user or password are null.
public TestAccount ( UserInfo user, string password ) : bool
user UserInfo The User account.
password string The Password to test.
return bool
        public bool TestAccount(UserInfo user, string password)
        {
            if(user == null) throw new ArgumentNullException("user");
            if(password == null) throw new ArgumentNullException("password");

            return TryManualLogin(user.Username, password) != null;
        }