Set the bcrypt hashtype as the default for user creation
This commit is contained in:
parent
9e8eebac15
commit
c7c133ef1d
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user