VGSecurityManagerValidateUser Method
|
Verifies that the supplied user name and password are valid.
Namespace:
Novalys.VisualGuard.Security
Assembly:
Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax public static VGAuthenticationState ValidateUser(
string username,
string password
)
Public Shared Function ValidateUser (
username As String,
password As String
) As VGAuthenticationState
Parameters
- username
- Type: SystemString
The name of the user to be validated. - password
- Type: SystemString
The password for the specified user.
Return Value
Type:
VGAuthenticationStatea
VGAuthenticationState indicating if the validation succeeds or not.
Exceptions Exception | Condition |
---|
ArgumentNullException | username or password is null. |
ArgumentException | username is empty.
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.
|
See Also