Skip to content
This repository has been archived by the owner on Jun 25, 2023. It is now read-only.

Commit

Permalink
Fix for: #8
Browse files Browse the repository at this point in the history
  • Loading branch information
hammermaps committed Mar 19, 2015
1 parent 1345f56 commit 949960b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/case_lostpwd.php
Expand Up @@ -17,7 +17,7 @@
$get = db_stmt("SELECT id,user,level,pwd FROM ".$db['users']." WHERE `user`= ? AND `email` = ?",
array('ss', up($_POST['user']), up($_POST['email'])),false,true);

if(_rows($qry) && ($_POST['secure'] == $_SESSION['sec_lostpwd'] && $_SESSION['sec_lostpwd'] != NULL)) {
if($get['id'] && ($_POST['secure'] == $_SESSION['sec_lostpwd'] && $_SESSION['sec_lostpwd'] != NULL)) {
$pwd = mkpwd();
db("UPDATE ".$db['users']." SET `pwd` = '".md5($pwd)."' WHERE id = '".$get['id']."'");
setIpcheck("pwd(".$get['id'].")");
Expand Down

0 comments on commit 949960b

Please sign in to comment.