Verifies that the supplied user name and password are valid.

Namespace:  Novalys.VisualGuard.Security
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 3.2.912.1 (3.2.912.01)

Syntax

C#
public static VGAuthenticationState ValidateUser(
	string username,
	string password
)
Visual Basic (Declaration)
Public Shared Function ValidateUser ( _
	username As String, _
	password As String _
) As VGAuthenticationState

Parameters

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

Return Value

a VGAuthenticationState indicating if the validation succeeds or not.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionusername or password is null.
System..::.ArgumentExceptionusername is empty.

or

user or password is longer than 64 characters.
Novalys.VisualGuard.Security..::.VGConfigurationExceptionThe 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