Authenticating user

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

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

}

 

Page url: http://devnet.kentico.com/docs/5_5r2/devguide/index.html?authenticating_user.htm