Explorar el Código

When the user is updated increase the salt length and remove special characters that can cause problems.

Mark Crane hace 10 años
padre
commit
584a9b052d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      core/users/usersupdate.php

+ 1 - 1
core/users/usersupdate.php

@@ -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."', ";