AuthenticationHelperAuthenticateUser Method (String, String, String, Boolean, T:AuthenticationSourceEnum) |
Authenticates user against the database.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 8.2.23
Syntax public static UserInfo AuthenticateUser(
string userName,
string password,
string siteName,
bool login = true,
AuthenticationSourceEnum source = AuthenticationSourceEnum.Standard
)
Parameters
- userName
- Type: SystemString
User name to authenticate - password
- Type: SystemString
Password to authenticate - siteName
- Type: SystemString
Site name - login (Optional)
- Type: SystemBoolean
Indicates if methods is called during user login - source (Optional)
- Type: AuthenticationSourceEnum
Source of calling
Return Value
Type:
UserInfoSee Also