mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-22 19:06:37 +00:00
Update user_imports.php
This commit is contained in:
@@ -330,16 +330,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
//get the password, salt and hash the user password
|
||||
//set the password hash cost
|
||||
$options = array('cost' => 10);
|
||||
|
||||
//set the hash the user password
|
||||
$password = $array['users'][$row_id]['password'];
|
||||
if (isset($array['users'][$row_id]['salt'])) {
|
||||
$salt = $array['users'][$row_id]['salt'];
|
||||
}
|
||||
else {
|
||||
$salt = uuid();
|
||||
$array['users'][$row_id]['salt'] = $salt;
|
||||
}
|
||||
$array['users'][$row_id]['password'] = md5($salt.$password);
|
||||
$array['users'][$row_id]['password'] = password_hash($password, PASSWORD_DEFAULT, $options);
|
||||
|
||||
//set the user_uuid
|
||||
$array['users'][$row_id]['user_uuid'] = $user_uuid;
|
||||
@@ -503,4 +499,4 @@
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user