DNN 5.0.1.
I am trying to write a module that allows registered users of a master portal to create their own child portals (similar to the code in signup.ascx). i.e. they have logged into the host portal, and then accessed my module (only visible to registered users).
When the user hits "create" in my module, i use their UserInfo and try and call the int CreatePortal(string PortalName, UserInfo objAdminUser, string Description, string KeyWords, string TemplatePath, string TemplateFile, string HomeDirectory, string PortalAlias, string ServerPath, string ChildPath, bool IsChildPortal);
method of PortalController. The problem is that this code tries to create the user, and throws an exception.
Is there any elegant solution to this problem that doesn't involve hacking the dnn source to add another overload to PortalComtroller which effectively adds a boolean parameter, createuser, that tells it to create the user or not?
Thanks