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'"),