diff options
| author | polo <ordipolo@gmx.fr> | 2025-06-24 23:57:59 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-06-24 23:57:59 +0200 |
| commit | 7a13d53e43c7db7fe39474208ffa54ba2906d308 (patch) | |
| tree | 5bb9af2935c0e7c753c5eace6d9e4538c739a383 /src/controller/post.php | |
| parent | 41adf94ebf868232aa43fe9b8b80029896da9da7 (diff) | |
| download | cms-7a13d53e43c7db7fe39474208ffa54ba2906d308.tar.gz cms-7a13d53e43c7db7fe39474208ffa54ba2906d308.tar.bz2 cms-7a13d53e43c7db7fe39474208ffa54ba2906d308.zip | |
petites améliorations au système de mot de passe
Diffstat (limited to 'src/controller/post.php')
| -rw-r--r-- | src/controller/post.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/controller/post.php b/src/controller/post.php index b0bc6a0..3ba0656 100644 --- a/src/controller/post.php +++ b/src/controller/post.php | |||
| @@ -220,6 +220,14 @@ if($_SERVER['REQUEST_METHOD'] === 'POST' && $_SESSION['admin'] === true) | |||
| 220 | header("Location: " . new URL(['page' => $_GET['from']])); | 220 | header("Location: " . new URL(['page' => $_GET['from']])); |
| 221 | die; | 221 | die; |
| 222 | } | 222 | } |
| 223 | elseif(isset($_GET['action']) && $_GET['action'] === 'modif_mdp' | ||
| 224 | && isset($_POST['login']) && isset($_POST['old_password']) && isset($_POST['new_password']) | ||
| 225 | && isset($_POST['modify_password_hidden']) && empty($_POST['modify_password_hidden'])) | ||
| 226 | { | ||
| 227 | changePassword($entityManager); | ||
| 228 | header("Location: " . new URL(['page' => $_GET['from']])); | ||
| 229 | die; | ||
| 230 | } | ||
| 223 | else{ | 231 | else{ |
| 224 | header("Location: " . new URL(['error' => 'paramètres inconnus'])); | 232 | header("Location: " . new URL(['error' => 'paramètres inconnus'])); |
| 225 | die; | 233 | die; |
| @@ -230,5 +238,8 @@ if($_SERVER['REQUEST_METHOD'] === 'POST' && $_SESSION['admin'] === true) | |||
| 230 | else{ | 238 | else{ |
| 231 | require '../src/controller/ajax.php'; | 239 | require '../src/controller/ajax.php'; |
| 232 | } | 240 | } |
| 241 | |||
| 242 | require '../src/controller/ajax_calendar_admin.php'; | ||
| 233 | } | 243 | } |
| 234 | require '../src/controller/ajax_calendar.php'; \ No newline at end of file | 244 | |
| 245 | require '../src/controller/ajax_calendar_visitor.php'; | ||
