Hello,
Do the users exist in the Kentico database? If so, please authenticate them using:
UserInfoProvider.AuthenticateUser("MyNewUser", "", CMSContext.CurrentSiteName)See the
sample code. Please do not set the authentication cookie directly.
If you want to authenticate users against an external database, please follow:
Custom security handler.
Otherwise, it would be needful to exclude the MVC pages from Kentico processing (Site manager -> Settings -> URLs and SEO -> Excluded URLs).
Best regards,
Helena Grulichova