{"Name":"MWD.OWS.Custom.User.RegistrationV1(WithValidation)","ConfigurationID":"a87a8e72-a37d-4859-b2e8-9adfbc8d9f95","searchItems":[],"queryItems":[],"listItems":[],"messageItems":[{"Index":1,"Level":0,"Parameters":{"Value":"GENERAL INFORMATION:\n\nUserInfo gives you the ability to Edit and Create Users for your system, with easy attribute assignment, and without the need to worry about the physical database structures. Assignment is very simple:\n 1. To Load a User Info object: Leave the Name property empty, and set the Value to the ID of the target user, or the Username of the target user. This will automatically set this as the currently loaded userinfo record.\n 2. To Create a New User – Leave the Name Property empty, and set the Value to -1. This will automatically set the current userinfo object to a new object, which will create the user upon Save.\n 3. To Save the UserInfo – Leave the Name Property empty, and set the Value to Save. If you would like to use the resulting UserID for other purposes within the Action scripts, you can set the Name of the Action (Collection) variable to which you want the value stored: Save,myNewContactID. This will assign the value to the [myNewContactID,Action] variable.\n 4. To Assign a Property Setting – Set the Name of the Property as it appears within the UserInfo object, or within the Membership or Profile structures. All properties are automatically propagated by name. For instance, Email is used in all three tables, and will be automatically assigned, even though you only set the property by name once. (THIS IS CASE SENSITIVE).\n 5. To Assign a Role to a User – Set the Name of the Property to RoleID. The Value can actually be the Name of the Role for the current portal, or the ID of the Role for the current Portal. To remove the User from a Role, prefix the ID/Name value with a dash. For example: -Registered Users will remove the user from the Registered Users role.\n\n\nTo Log a user in to DNN via DNN Authentication:\n 1. First, load the user (above) either by Username or ID.\n 2. Next, Assign the user password value to an Action variable. You must have this to utilize the DNN Authentication mechanism. If you want to log the user in without the password, check the Login to DNN via Custom Authentication.\n 3. Finally, Assign the UserInfo variable to LOGIN followed by two parameters – the name of the variable containing the password, and the name of the variable to record the result (EXAMPLE: Login,Password,LoginResult).\n\n-The result variable (LoginResult), is accessed like all other action variables. Meaning – for the example [LoginResult,Action] will yield the numeric result. The physical text result is also accessed via the result parameter with .Error appended, as seen in the sample [LoginResult.Error,Action]. \n\n-The numeric results possible are as follows: \n -3 = User unknown. This means that the user has not been loaded into the UserInfo \n -2 = Bad Password. \n -1 = User Unapproved. \n 0 = User locked out (due to password failures). \n 1 = Success\n\n\nTo Log a user in to DNN via Custom Authentication:\n 1. First, load the user (above) either by Username or ID.\n 2. Assign the UserInfo variable to AUTHENTICATE followed by one parameter – the name of the action variable to record the result. For example: AUTHENTICATE,LoginResult. \n\n-The result variable is accessed like all other action variables. Meaning – for the example [LoginResult,Action] will yield the numeric result. The physical text result is also accessed via the result parameter with .Error appended, as seen in the sample [LoginResult.Error,Action]. \n\n-The numeric results possible are as follows: \n -3 = No User loaded. This means that the user has not been loaded into the UserInfo \n -2 = User Unknown. This means that the user failed to exist in the portal \n -1 = User Unapproved. \n 0 = User locked out (due to password failures). \n 1 = Success\n\n\nCOMMON RUNTIME VALUES RELATED TO USERS (SEE: http://www.openwebstudio.com/Community/Content.aspx?topic=Columns_and_Values):\n\n[UserInfo.AffiliateID]\n[UserInfo.FirstName]\n[UserInfo.FullName]\n[UserInfo.IsSuperUser]\n[UserInfo.LastName]\n[UserInfo.Membership.Approved]\n[UserInfo.Membership.CreatedDate]\n[UserInfo.Membership.Email]\n[UserInfo.Membership.LastLockoutDate]\n[UserInfo.Membership.LastLoginDate]\n[UserInfo.Membership.LockedOut]\n[UserInfo.Membership.Password] – Supported only in versions of DNN preceeding 4.3x and 3.3x\n[UserInfo.Membership.Username]\n[UserInfo.PortalID]\n[UserInfo.Profile.Cell]\n[UserInfo.Profile.City]\n[UserInfo.Profile.Country]\n[UserInfo.Profile.Fax]\n[UserInfo.Profile.FirstName]\n[UserInfo.Profile.FullName]\n[UserInfo.Profile.IM]\n[UserInfo.Profile.LastName]\n[UserInfo.Profile.PostalCode]\n[UserInfo.Profile.PreferredLocale]\n[UserInfo.Profile.Region]\n[UserInfo.Profile.Street]\n[UserInfo.Profile.Telephone]\n[UserInfo.Profile.TimeZone]\n[UserInfo.Profile.Unit]\n[UserInfo.Profile.Website]\n[UserInfo.UserID]\n[UserInfo.Username]\n\n\nCREATE NEW USER REGISTRATION STATUS CODES:\n\n1+ = SUCCESS (RETURNS THE USER ID)\n-2 = USERNAME ALREADY EXISTS\n-4 = PLEASE ENTER A USERNAME (NO USERNAME SUPPLIED)\n-5 = THE USER WAS CREATED BUT NO VALID PORTAL ID WAS ASSIGNED - THIS USER WILL NOT SHOW UP IN THE USER MANAGER\n-6 = BAD PASSWORD (DOES NOT MEET DNN'S REQUIREMENTS - EXAMPLE MUST BE AT LEAST 7 CHARACTERS)\n\n"},"ActionType":"Action-Comment","ChildActions":[]},{"Index":2,"Level":0,"Parameters":{"Name":"New User Registration Form","RenderType":"0","skipDebug":"false","includeSearch":"false"},"ActionType":"Action-Region","ChildActions":[{"Index":3,"Level":0,"Parameters":{"Type":"Detail-NoQuery","GroupStatement":"","GroupIndex":"","Value":"
| First Name: | \n\n |
| Last Name: | \n\n |
| Email Address: | \n\n |
| Username: | \n\n |
| Password: | \n\n |
| \n | \n {IIF, \"'[NewRegResult,Action]'='-2'\", \"USERNAME ALREADY EXISTS - PLEASE ENTER ANOTHER USERNAME (CODE: NEWREG[NewRegResult,Action])\", \"\"}\n {IIF, \"'[NewRegResult,Action]'='-4'\", \"PLEASE ENTER A USERNAME (CODE: NEWREG[NewRegResult,Action])\", \"\"}\n {IIF, \"'[NewRegResult,Action]'='-5'\", \"THE USER WAS CREATED BUT NO VALID PORTAL ID WAS ASSIGNED (CODE: NEWREG[NewRegResult,Action])\", \"\"}\n {IIF, \"'[NewRegResult,Action]'='-6'\", \"YOUR PASSWORD MUST BE AT LEAST 7 CHARACTERS (CODE: NEWREG[NewRegResult,Action])\", \"\"} | \n