How to login to Dotnetnuke programatically

136 Views Asked by At

I'm developing a mobile app with DotNetNuke 8.0 on the backend. I can't simply display a DNN login page, so I have to construct the HTTP multipart form for users to log in. I've researched for hours and can't find a solution.

1

There are 1 best solutions below

0
On

Not sure if this is what you mean, but there is a UserLogin method in DotNetNuke.Entities.Users.UserController.

public static void UserLogin(int portalId, UserInfo user, string portalName, string ip, bool createPersistentCookie);