Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Scripting creation of users in database
Hi I have to create around 150 users on a vanilla installation since I want to simplify the experience for the users. Does anybody know which fields I _need_ to fill out in the LUM_User table? Are there any other dependencies I need to fill in? What encryption is used to the passwords? MD5?
0
This discussion has been closed.
Comments
<?php include("appg/settings.php"); $Configuration['SELF_URL'] = 'urlpage.php'; include("appg/vanilla_people.php"); $lines = file('file with logins/passwords'); foreach ($lines as $line) { // choose your own delimiter $columns = split(';', $line); // you choose your columns $username = $columns[1]; $pw = $columns[2]; $email = ""; $Applicant = $Context->ObjectFactory->NewContextObject($Context, 'User'); $Applicant->Name = $username; $Applicant->Email = $email; $Applicant->NewPassword = $pw; $Applicant->ConfirmPassword = $pw; $Applicant->AgreeToTerms = true; $UserManager = $Context->ObjectFactory->NewContextObject($Context, 'UserManager'); $UserManager->CreateUser($Applicant); } ?>