Looking to automate the creation of users, and need some help creating users using MySQL commands.
Thanks
Looking to automate the creation of users, and need some help creating users using MySQL commands.
Thanks
You can look at application/schema/users.sql to see the structure for the users table.
You'll need to set at least the username, name, email, active and role columns. Normally Omeka sends activation emails to let users set their own passwords. This won't really work on the command line without fully loading up Omeka, so I suppose you'll need to set the password and salt also.
The generateSalt
and hashPassword
methods in application/models/User.php will tell you the format Omeka's expecting: it's a simple salted hash.