Hello Sean Haddy,
Thank you for using our services.
You can create a CSV (Comma Separated Values) file which will contain your user information such as user names, profile information, e-mail, etc .Attached is a sample tool that reads values from this file and creates new users. What the tool does is that it reads lines from a file where users and profile information are entered as coma separated values (CSV file). Each line represents the following information:
Username, Password, Email, Role
This tool can be easily extended to read additional data and add it to user's profile for example. If for example you wish to add user's profile you just have to add some code to the ~
/Tools/ImportUsersTool/ImportUsersTool.ascx.cs:
Copy Code
Attached is the custom tool, and a sample CSV file. To use it just add the contents of the archive to the root directory of your website and restart the website. You can use the same pattern to add additional values if you wish. When you are creating the users you can set a profile property to check whether they should change password. First extend the profile properties in web.config:
Then just add this when creating user profiles:
Then you can edit the log-in control (
~/Sitefinity/UserControls/Login/LoginControl.ascx.cs) to check if the password should be changed and if yes, redirect to a page with change password control:
Then after the password has been changed do not forget to set the proper value to the user profile.
Greetings,
Radoslav Georgiev
the Telerik team