plugins/SpecialUserFuncs.php
changeset 591 2529833a7731
parent 590 03a60844c7c5
child 593 4f9bec0d65c1
equal deleted inserted replaced
590:03a60844c7c5 591:2529833a7731
  1595           echo "<p>" . $lang->get('userfuncs_passreset_err_failed_score', array('inp_score' => $inp_score, 'url' => $url)) . "</p>";
  1595           echo "<p>" . $lang->get('userfuncs_passreset_err_failed_score', array('inp_score' => $inp_score, 'url' => $url)) . "</p>";
  1596           $template->footer();
  1596           $template->footer();
  1597           return false;
  1597           return false;
  1598         }
  1598         }
  1599       }
  1599       }
  1600       $encpass = $aes->encrypt($data, $session->private_key, ENC_HEX);
  1600       $encpass = $session->pk_encrypt($data, ENC_HEX);
  1601       $q = $db->sql_query('UPDATE '.table_prefix.'users SET password=\'' . $encpass . '\',temp_password=\'\',temp_password_time=0 WHERE user_id='.$user_id.';');
  1601       $q = $db->sql_query('UPDATE '.table_prefix.'users SET password=\'' . $encpass . '\',temp_password=\'\',temp_password_time=0 WHERE user_id='.$user_id.';');
  1602       
  1602       
  1603       if($q)
  1603       if($q)
  1604       {
  1604       {
  1605         $session->login_without_crypto($row['username'], $data);
  1605         $session->login_without_crypto($row['username'], $data);