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 242df31 commit c3dda58Copy full SHA for c3dda58
web/api/index.php
@@ -84,6 +84,15 @@ function api_legacy(array $request_data) {
84
$hash = crypt($password, '$6$rounds=5000$'.$salt.'$');
85
$hash = str_replace('$rounds=5000', '', $hash);
86
}
87
+ if ($method == 'yescrypt') {
88
+ $v_password = tempnam("/tmp", "vst");
89
+ $fp = fopen($v_password, "w");
90
+ fwrite($fp, $password."\n");
91
+ fclose($fp);
92
+ exec(HESTIA_CMD . 'v-check-user-password '. $v_user.' '. $v_password. ' '.$v_ip.' yes', $output, $return_var);
93
+ $hash = $output[0];
94
+ unset($output);
95
+ }
96
if ($method == 'des') {
97
$hash = crypt($password, $salt);
98
0 commit comments