Authenticating user

Checking user name and password

 

[C#]

 

using CMS.SiteProvider;

 

// UserInfo

UserInfo user = null;

 

user = CMS.SiteProvider.UserInfoProvider.AuthenticateUser("Alice", "******", CMS.CMSHelper.CMSContext.CurrentSiteName);

 

if (user != null)

{

  // Authentication was successful

}