MyBB Community Forums

Full Version: Inserting a user - salt?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Im having trouble with manually inserting a user in phpmyadmin to the board.

I take it the username is obviously the login username. The password is the md5 version? But then how does the salt come into it? What does salt do?

Ive searched on google and found its an addon to the password in some place. But how?

Thank you!
Hi,

Firstly, may I ask why you would want to insert a user directly via phpMyAdmin? You can insert users via the AdminCP. If you are developing a plugin or want to insert a user via a script, I would suggest looking at the userhandler (inc/datahandlers/user.php) as it will handle all this for you.

If you add manually, you'll probably have to update some caches as well (and possibly some profilefields etc).


Anyways, a salt is used to make the password stronger. A salt, in MyBB, is basically a random sequence of characters. The salt is enhashed into the password hash.