Просмотр исходного кода

Merge pull request #1727 from serghey-rodin/madeITBelgium-patch-4

Fix bug in password reset
Serghey Rodin 7 лет назад
Родитель
Сommit
14c093a6a1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      web/reset/index.php

+ 1 - 1
web/reset/index.php

@@ -48,7 +48,7 @@ if ((!empty($_POST['user'])) && (!empty($_POST['code'])) && (!empty($_POST['pass
         if ( $return_var == 0 ) {
             $data = json_decode(implode('', $output), true);
             $rkey = $data[$user]['RKEY'];
-            if (hash_equals($rkey, $POST[‘code’])) {
+            if (hash_equals($rkey, $_POST['code'])) {
                 $v_password = tempnam("/tmp","vst");
                 $fp = fopen($v_password, "w");
                 fwrite($fp, $_POST['password']."\n");