From a208873f34fc2e8590568f0ebd82f7d18a5166eb Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 25 Jul 2016 11:49:49 +0000 Subject: [PATCH] authsql : missing fields in db connection git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2946 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- authsql.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/authsql.php b/authsql.php index 467b733..e7f9187 100644 --- a/authsql.php +++ b/authsql.php @@ -58,7 +58,8 @@ class authsql extends auth if ($this->fieldFirstname === null) throw new Exception (dgettext("domframework", "No fieldFirstname defined"), 500); - $fields = array_merge (array ($this->fieldIdentifier, $this->fieldPassword), + $fields = array_merge (array ($this->fieldIdentifier, $this->fieldPassword, + $this->fieldLastname, $this->fieldFirstname), $this->fieldsInfo); $fields = array_flip ($fields); foreach ($fields as $key=>$val) @@ -82,6 +83,7 @@ class authsql extends auth $this->fieldLastname, $this->fieldPassword), $this->fieldsInfo)); +var_dump ($data); if (count ($data) === 0) throw new Exception (sprintf (dgettext("domframework", "Unable to find the user : '%s'"),