After upgrade to kentico 8, unable to logon to CMSDesk

Shailesh Kumar asked on June 29, 2015 11:22

Hi,

After upgrade to Kentico 8, when I am trying to logon to cmsdesk my existing way to set a user is not working.

CMSContext.SetCurrentUser(new CurrentUserInfo(user, true));

Please suggest what should I do to enable logon to CMSDesk.

Thanks

Correct Answer

Shailesh Kumar answered on June 29, 2015 13:33

Thanks Martin,

As you sent the mail regarding this, I would like to share your quotes.

The reason is that because of some API Changes in Kentico 8, CMSContext doesn't exist anymore.

Method

CMSContext.SetCurrentUser(CMS.CMSHelper.CurrentUserInfo)

was moved to

CMS.Membership.AuthenticationHelper.SetCurrentUser()

For more details regarding API changes in Kentico 8, please read this article: https://devnet.kentico.com/articles/api-changes-in-kentico-8

Thanks

1 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.