We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6cb9ee commit 8ecf432Copy full SHA for 8ecf432
web/api/index.php
@@ -81,7 +81,7 @@ function api_legacy(array $request_data) {
81
exit;
82
}
83
$v_ip = quoteshellarg(get_real_user_ip());
84
- $output = '';
+ unset($output);
85
exec(HESTIA_CMD."v-get-user-salt admin ".$v_ip." json", $output, $return_var);
86
$pam = json_decode(implode('', $output), true);
87
$salt = $pam['admin']['SALT'];
@@ -99,6 +99,7 @@ function api_legacy(array $request_data) {
99
$fp = fopen($v_password, "w");
100
fwrite($fp, $password."\n");
101
fclose($fp);
102
103
exec(HESTIA_CMD . 'v-check-user-password "admin" '. $password. ' '.$v_ip.' yes', $output, $return_var);
104
$hash = $output[0];
105
unset($output);
0 commit comments