mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-22 00:18:28 +00:00
When the user is updated increase the salt length and remove special characters that can cause problems.
This commit is contained in:
@@ -286,7 +286,7 @@ if (count($_POST) > 0 && $_POST["persistform"] != "1") {
|
||||
}
|
||||
if (strlen($password) > 0 && $confirm_password == $password) {
|
||||
//salt used with the password to create a one way hash
|
||||
$salt = generate_password('20', '4');
|
||||
$salt = uuid();
|
||||
//set the password
|
||||
$sql .= "password = '".md5($salt.$password)."', ";
|
||||
$sql .= "salt = '".$salt."', ";
|
||||
|
||||
Reference in New Issue
Block a user