Validates a User's credentials against the Data Store
Namespace: DotNetNuke.Entities.UsersAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
| C# |
|---|
public static UserInfo ValidateUser( int portalId, string username, string password, string authType, string verificationCode, string portalName, string ip, ref UserLoginStatus loginStatus ) |
| Visual Basic |
|---|
Public Shared Function ValidateUser ( portalId As Integer, username As String, password As String, authType As String, verificationCode As String, portalName As String, ip As String, ByRef loginStatus As UserLoginStatus ) As UserInfo |
Parameters
- portalId
- Type: System..::..Int32
The Id of the Portal the user belongs to
- username
- Type: System..::..String
The user name of the User attempting to log in
- password
- Type: System..::..String
The password of the User attempting to log in
- authType
- Type: System..::..String
The type of Authentication Used
- verificationCode
- Type: System..::..String
The verification code of the User attempting to log in
- portalName
- Type: System..::..String
The name of the Portal
- ip
- Type: System..::..String
The IP Address of the user attempting to log in
- loginStatus
- Type: DotNetNuke.Security.Membership..::..UserLoginStatus%
A UserLoginStatus enumeration that indicates the status of the Login attempt. This value is returned by reference.