Set the bcrypt hashtype as the default for user creation

This commit is contained in:
onli 2018-06-12 22:43:19 +02:00
parent 9e8eebac15
commit c7c133ef1d

View File

@ -17,7 +17,7 @@ if (IN_serendipity !== true) {
* @param int The userlevel of a user * @param int The userlevel of a user
* @return int The new user ID of the added author * @return int The new user ID of the added author
*/ */
function serendipity_addAuthor($username, $password, $realname, $email, $userlevel=0, $hashtype=1) { function serendipity_addAuthor($username, $password, $realname, $email, $userlevel=0, $hashtype=2) {
global $serendipity; global $serendipity;
$password = serendipity_hash($password); $password = serendipity_hash($password);
$query = "INSERT INTO {$serendipity['dbPrefix']}authors (username, password, realname, email, userlevel, hashtype) $query = "INSERT INTO {$serendipity['dbPrefix']}authors (username, password, realname, email, userlevel, hashtype)