[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/01: Accept user in lowercase
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/01: Accept user in lowercase |
Date: |
Fri, 07 Aug 2015 00:01:02 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 5429620c7952eb01470b1a255c6dfc6ddc3d0319
Author: Dany De Bontridder <address@hidden>
Date: Fri Aug 7 01:56:11 2015 +0200
Accept user in lowercase
---
include/class_user.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/class_user.php b/include/class_user.php
index 0dbaf16..7ec8b8b 100644
--- a/include/class_user.php
+++ b/include/class_user.php
@@ -60,7 +60,7 @@ class User
exit();
}
- $this->login = $_SESSION['g_user'];
+ $this->login =strtolower($_SESSION['g_user']);
$this->pass = $_SESSION['g_pass'];
$this->lang = (isset($_SESSION['g_lang'])) ?
$_SESSION['g_lang'] : 'fr_FR.utf8';
$this->valid = (isset($_SESSION['isValid'])) ? 1 : 0;
@@ -97,7 +97,7 @@ class User
the database thanks it login */
if ($this->id < 0)
{
- $sql_cond = " where use_login=lower($1)";
+ $sql_cond = " where lower(use_login)=lower($1)";
$sql_array = array($this->login);
}
else