| Baatezu wrote
Quick Answer:
DotNetNuke.Entities.Users
DotNetNuke.Security.Roles
Slightly Longer Answer
Fill a UserInfo object
Use UserController.CreateUser(your filled userinfo object)
Get Role information with a RoleInfo object and Add/Delete roles to users with a RoleController object. |
I tried that with following code:
Dim objUser As UserInfo = New UserInfo()
objUser.FirstName = "test"
objUser.LastName = "Tester"
objUser.Username = "Tester"
objUser.Email = "tester@domain.com"
Dim st As UserCreateStatus
st = UserController.CreateUser(objUser)
but got
st = “InvalidPassword”
I do not see the way how to assign the password to objUser. Could somebody please submit a bit of code?
Thanks