Skip to content

Commit f6f6f9c

Browse files
Fix bug in password reset
1 parent defba72 commit f6f6f9c

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)