Click or drag to resize

UserManagementUtilsValidateAuthentication Method

Validates authentication. Optionally checks against custom IAuthenticationCheck class, if configured. Inactive users are rejected. If the AdminAccessOnly configuration property is set, users without "System.All" permission rejected.

Namespace:  PDTec.IceNet.Domain.UserManagement
Assembly:  PDTec.IceNet.Domain (in PDTec.IceNet.Domain.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public static bool ValidateAuthentication(
	IDatabaseRepository pRepository,
	string userName,
	string password,
	out string message
)

Parameters

pRepository
Type: PDTec.IceNet.Core.DatabaseIDatabaseRepository
The repository.
userName
Type: SystemString
The username.
password
Type: SystemString
The password.
message
Type: SystemString
In case of authentication errors this parameter contains a friendly (localized) message.

Return Value

Type: Boolean
true if the user can be authenticated, false otherwise.
See Also