Click or drag to resize
DatabaseUtilsCheckLogin Method
Checks login parameters and IsInactive status of user. On success, an IUser object is returned. Throws AuthenticationException if something fails. Accepts empty password, if AutoLogin is enabled by configuration.

Namespace: PDTec.IceNet.Sdk.Utils
Assembly: PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 6.0.0.0 (6.0.6225.27214)
Syntax
C#
public static IUser CheckLogin(
	IDatabaseRepository pRepository,
	string userName,
	string password
)

Parameters

pRepository
Type: PDTec.IceNet.Core.DatabaseIDatabaseRepository
The repository.
userName
Type: SystemString
The user name.
password
Type: SystemString
The password.

Return Value

Type: IUser
The IUser object representing the authenticated user.
See Also