From 52fa2c3908aa187f4303786dcd1e3073e33565fb Mon Sep 17 00:00:00 2001 From: flavaud Date: Wed, 25 Mar 2015 14:53:26 +0100 Subject: [PATCH 1/3] Update DataBase.php Resolving 500 erreur on Curl sms send for contact --- model/DataBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/DataBase.php b/model/DataBase.php index fca8a76..e437850 100755 --- a/model/DataBase.php +++ b/model/DataBase.php @@ -272,7 +272,7 @@ 'name' => $name ); - return $this->runQuery($query, $params, SELF::FETCH); + return $this->runQuery($query, $params, self::FETCH); } /** From c0815664c6a843f25a90007be504bb58d485a47e Mon Sep 17 00:00:00 2001 From: flavaud Date: Wed, 25 Mar 2015 15:02:05 +0100 Subject: [PATCH 2/3] Update users.php Correcting error message for mail not send --- controllers/users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/users.php b/controllers/users.php index b23eaa8..293b617 100755 --- a/controllers/users.php +++ b/controllers/users.php @@ -120,7 +120,7 @@ else { header('Location: ' . $this->generateUrl('users', 'showAll', array( - 'errormessage' => 'Impossible d\'envoyer le SMS d\'inscription à l\'utilisateur. Le compte n\'a donc pas été créé.' + 'errormessage' => 'Impossible d\'envoyer le mail d\'inscription à l\'utilisateur. Le compte n\'a donc pas été créé.' ))); return false; } From 2cd9ddf8b7227207b7be3c46a2edb4cc7182cae3 Mon Sep 17 00:00:00 2001 From: Damien GUILLEM Date: Mon, 20 Apr 2015 13:07:21 +0200 Subject: [PATCH 3/3] Merge fix for CSRF errors in user profile management --- model/DataBase.php | 3 --- templates/profile.php | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/model/DataBase.php b/model/DataBase.php index fca8a76..1b4a676 100755 --- a/model/DataBase.php +++ b/model/DataBase.php @@ -1084,9 +1084,6 @@ 'admin' => $admin, ); - $req = $this->bdd->prepare($query); - $req->execute($params); - return $this->runQuery($query, $params, self::ROWCOUNT); } diff --git a/templates/profile.php b/templates/profile.php index 03b3231..de527ea 100755 --- a/templates/profile.php +++ b/templates/profile.php @@ -49,7 +49,7 @@

Modifier mot de passe

-
+
@@ -71,7 +71,7 @@

Modifier e-mail

- +
@@ -91,7 +91,7 @@

Supprimer ce compte

- +