Verifies that the supplied user name and password are valid.
true if the supplied user name and password are valid; otherwise, false.
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.
Exception Type | Condition |
---|---|
ArgumentNullException | username or password is null. |
ArgumentException | username is empty or contains invalid chars ('\', '/', '?', '*', '%', ';', ''', '"', ':', '|', '[', ']', '+', '=', ','). or user or password is longer than 64 characters. |
VGConfigurationException | The configuration file is not valid or A problem occurs during the connection to the repository.or The version of the repository or the version of the permissions is not supported by the application. |
NotSupportedException |
the repository does not support the VisualGuard or Database mode. |
VGMembershipInstance Class | Novalys.VisualGuard.Security.Membership Namespace