Skip to content

Commit 14c093a

Browse files
Merge pull request hestiacp#1727 from serghey-rodin/madeITBelgium-patch-4
Fix bug in password reset
2 parents defba72 + f6f6f9c commit 14c093a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/reset/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
if ( $return_var == 0 ) {
4949
$data = json_decode(implode('', $output), true);
5050
$rkey = $data[$user]['RKEY'];
51-
if (hash_equals($rkey, $POST[‘code])) {
51+
if (hash_equals($rkey, $_POST['code'])) {
5252
$v_password = tempnam("/tmp","vst");
5353
$fp = fopen($v_password, "w");
5454
fwrite($fp, $_POST['password']."\n");

0 commit comments

Comments
 (0)