From 4e4c5d8e7b07d1b9ac076eb255b865b528f3771e Mon Sep 17 00:00:00 2001 From: rudy Date: Wed, 6 Nov 2024 10:22:48 +0100 Subject: [PATCH] =?UTF-8?q?recherche=20login=20lower=20dans=20requ=C3=AAte?= =?UTF-8?q?=20de=20connexion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .nvmrc | 1 + src/SQLLogin/SQLLoginRequest.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .nvmrc diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..0a47c85 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/iron \ No newline at end of file diff --git a/src/SQLLogin/SQLLoginRequest.php b/src/SQLLogin/SQLLoginRequest.php index 0f173f4..82a0b17 100644 --- a/src/SQLLogin/SQLLoginRequest.php +++ b/src/SQLLogin/SQLLoginRequest.php @@ -103,6 +103,6 @@ class SQLLoginRequest { $fields = join(',', array_merge($this->getPasswordFields(), $this->getDataFields())); - return 'SELECT '.$fields.' FROM '.$this->getTableName().' WHERE '.$this->getLoginColumnName().' = :'.$this->getLoginColumnName().';'; + return 'SELECT '.$fields.' FROM '.$this->getTableName().' WHERE LOWER('.$this->getLoginColumnName().') = LOWER(:'.$this->getLoginColumnName().');'; } } -- 2.17.1