Click or drag to resize
AuthenticationHelperAuthenticateUser Method (String, String, String, Boolean, T:AuthenticationSourceEnum)
Authenticates user against the database.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 9.0.0
Syntax
C#
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: UserInfo
See Also