Skip to content

Commit

Permalink
Merge remote-tracking branch 'tj/issue_4906'
Browse files Browse the repository at this point in the history
  • Loading branch information
cindyli committed Oct 31, 2011
2 parents cfd00d1 + 0a1b4d0 commit 188c2c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/classes/DAO/UsersDAO.class.php
Expand Up @@ -37,7 +37,7 @@ public function Validate($login, $pwd)
{
$sql = "SELECT user_id FROM ".TABLE_PREFIX."users
WHERE (login='".$login."' OR email='".$login."')
AND SHA1(CONCAT(password, '".$_SESSION[token]."'))='".$pwd."'";
AND SHA1(CONCAT(password, '".$_SESSION['token']."'))='".$pwd."'";

$rows = $this->execute($sql);
if (is_array($rows))
Expand Down Expand Up @@ -643,4 +643,4 @@ private function isEmailExists($email)
}

}
?>
?>

0 comments on commit 188c2c9

Please sign in to comment.