Visual Guard Class Library Documentation

VGMembership.ValidateUser Method 

Verifies that the supplied user name and password are valid.

public static bool ValidateUser(
   String username,
   String password
);

Parameters

username
The name of the user to be validated.
password
The password for the specified user.

Return Value

true if the supplied user name and password are valid; otherwise, false.

Remarks

This method do not change the current user managed by Visual Guard. You must use the Authenticate method to change the current user.

This method will update the number of invalid password attempts and can lock out the user if the password is invalid.

Exceptions

Exception Type Condition
ArgumentNullException username or password is null.
ArgumentException username or password is empty or is longer than 64 characters after trimming.

See Also

VGMembership Class | Novalys.VisualGuard.Security.Membership Namespace