domci : commas should be followed by space

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5281 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2019-05-23 14:55:18 +00:00
parent 17168aaaef
commit f423229f94
20 changed files with 159 additions and 167 deletions

View File

@@ -57,23 +57,23 @@ class userssql extends users
public function connect ()
{
if ($this->table === null)
throw new Exception (dgettext ("domframework","No SQL table defined"),
500);
throw new Exception (dgettext ("domframework", "No SQL table defined"),
500);
if ($this->fieldEmail === null)
throw new Exception (dgettext ("domframework",
"No fieldIdentifier defined"), 500);
"No fieldIdentifier defined"), 500);
if ($this->fieldPassword === null)
throw new Exception (dgettext ("domframework",
"No fieldPassword defined"), 500);
"No fieldPassword defined"), 500);
if ($this->fieldLastname === null)
throw new Exception (dgettext ("domframework",
"No fieldLastname defined"), 500);
"No fieldLastname defined"), 500);
if ($this->fieldFirstname === null)
throw new Exception (dgettext ("domframework",
"No fieldFirstname defined"), 500);
"No fieldFirstname defined"), 500);
if ($this->fieldLastchange === null)
throw new Exception (dgettext ("domframework",
"No fieldLastchange defined"), 500);
"No fieldLastchange defined"), 500);
$this->db = new dblayer ($this->dsn, $this->username, $this->password,
$this->driver_options);
$this->db->table = $this->table;
@@ -178,7 +178,7 @@ class userssql extends users
$this->checkPassword ($newpassword);
if ($this->checkValidPassword ($email, $oldpassword) !== true)
throw new Exception (dgettext ("domframework",
"Bad old password provided"), 401);
"Bad old password provided"), 401);
$cryptedPassword = $this->cryptPasswd ($newpassword);
return $this->db->update ($email,
array ($this->fieldPassword=>$cryptedPassword,
@@ -201,7 +201,7 @@ class userssql extends users
array ($this->fieldPassword));
if (count ($data) === 0)
throw new Exception (dgettext ("domframework",
"No information found for this email"), 404);
"No information found for this email"), 404);
$cryptedPassword = $this->cryptPasswd ($newpassword);
return $this->db->update ($email,
array ($this->fieldPassword=>$cryptedPassword,
@@ -223,10 +223,10 @@ class userssql extends users
array ($this->fieldPassword));
if (count ($data) === 0)
throw new Exception (dgettext ("domframework",
"No information found for this email"), 404);
"No information found for this email"), 404);
if (! isset ($data[0][$this->fieldPassword]))
throw new Exception (dgettext ("domframework",
"No password available for this email"), 404);
"No password available for this email"), 404);
$cryptedPassword = $data[0][$this->fieldPassword];
if (crypt ($password, $cryptedPassword) !== $cryptedPassword)
return false;