XF 2.0 Password Hash

Twerion

Member
Hey,

how does xenforo 2 hash user password? Can I convert a string into a password hash by myself? Or how can I create new users?

Regrads
 
Same as XF1.

We use bcrypt, though if you have PHP 5.5 or above you can just use PHP's built in password_hash and password_verify functions.
 
Easiest way would probably be to just use the \XF\Service\User\Registration service that XF uses when registering, take a look in \XF\Pub\Controller\Register :)
 
Top Bottom