Importing Users
How to import users to sentinel and the use sentinel as a login
Supported hashes when importing accounts
If you aren't familiar with what to do and need extra assistance with a custom salt please contact oneclub.
bcrypt
sha256
md5
sha512
sha1
black2b
md5-cryptImporting Users via API
When importing users, you will use the same /auth/register endpoint as a regular user registration, but with specific fields for hashed passwords.
The request body should follow this structure:
{
"user_info": {
"username": "",
"email": "",
"first_name": "",
"last_name": ""
},
"password": "",
"password_hash": "",
"hash_algorithm": ""
}Key fields for importing:
UserInfo: Contains the basic user details.PasswordHash: The existing hashed password for the user.HashAlgorithm: The algorithm used to hash the password (must be one of the supported hashes).
The Password field should only be used when registering a new user where the plaintext password is provided.
For importing existing users, PasswordHash and HashAlgorithm must be used instead.
For importing a large number of users, concurrent requests are recommended for better performance.