Click or drag to resize

VGMembershipValidateUser Method

Verifies that the supplied user name and password are valid.

Namespace:  Novalys.VisualGuard.Security.Membership
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.0.101.19 (2019.0.0101.19)
Syntax
public static bool ValidateUser(
	string username,
	string password
)

Parameters

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

Return Value

Type: Boolean
true if the supplied user name and password are valid; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionusername or password is null.
ArgumentException username or password is empty or is longer than 64 characters after trimming.
Remarks
This method do not change the current user managed by Visual Guard. You must use the Authenticate(String, String, VGAuthenticationMode) 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.

See Also