Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

4906: Use of undefined constant token - assumed 'token' during log-in #13

Merged
merged 1 commit into from

2 participants

This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/classes/DAO/UsersDAO.class.php
View
4 include/classes/DAO/UsersDAO.class.php
@@ -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))
@@ -643,4 +643,4 @@ private function isEmailExists($email)
}
}
-?>
+?>
Something went wrong with that request. Please try again.