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: 7.2.0.0 (7.2.7583.15464)
Syntaxpublic 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:
IUserThe IUser object representing the authenticated user.
See Also