Defined $encrypted_password
parent
ce8182e32f
commit
5e61d89b7f
|
@ -239,6 +239,9 @@ class ServerController extends AbstractServerController {
|
||||||
return $this->executeIndex();
|
return $this->executeIndex();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We need the server id to encrypt the password. Encryption will be done after the server is added
|
||||||
|
$encrypted_password = '';
|
||||||
|
|
||||||
if (!empty($_POST['website_password'])) {
|
if (!empty($_POST['website_password'])) {
|
||||||
$new_password = psm_POST('website_password');
|
$new_password = psm_POST('website_password');
|
||||||
|
|
||||||
|
@ -251,9 +254,6 @@ class ServerController extends AbstractServerController {
|
||||||
} else {
|
} else {
|
||||||
$encrypted_password = psm_password_encrypt(strval($this->server_id).psm_get_conf('password_encrypt_key'), $new_password);
|
$encrypted_password = psm_password_encrypt(strval($this->server_id).psm_get_conf('password_encrypt_key'), $new_password);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
// We need the server id to encrypt the password. Encryption will be done after the server is added
|
|
||||||
$encrypted_password = '';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue