We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33e9d6e commit 7438923Copy full SHA for 7438923
1 file changed
interface/web/client/client_edit.php
@@ -408,13 +408,7 @@ function onAfterUpdate() {
408
// password changed
409
if(isset($conf['demo_mode']) && $conf['demo_mode'] != true && isset($this->dataRecord["password"]) && $this->dataRecord["password"] != '') {
410
$password = $this->dataRecord["password"];
411
- $salt="$1$";
412
- $base64_alphabet='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
413
- for ($n=0;$n<8;$n++) {
414
- $salt.=$base64_alphabet[mt_rand(0, 63)];
415
- }
416
- $salt.="$";
417
- $password = crypt(stripslashes($password), $salt);
+ $password = $app->auth->crypt_password($password);
418
$client_id = $this->id;
419
$sql = "UPDATE sys_user SET passwort = ? WHERE client_id = ?";
420
$app->db->query($sql, $password, $client_id);
0 commit comments