diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-12-23 20:14:08 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-12-23 20:14:08 +0100 |
commit | e6a313f0ce599e14f2d6c55c8080582f0d539d10 (patch) | |
tree | 7076845bf8d59c7b1391917d875f014858fc2cc8 /app/class/controllerconnect.php | |
parent | e8566a57cf1b9cc2eed10429f27840d17da945ef (diff) | |
download | wcms-e6a313f0ce599e14f2d6c55c8080582f0d539d10.tar.gz wcms-e6a313f0ce599e14f2d6c55c8080582f0d539d10.zip |
admin connect
Diffstat (limited to 'app/class/controllerconnect.php')
-rw-r--r-- | app/class/controllerconnect.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/class/controllerconnect.php b/app/class/controllerconnect.php index dd06933..355de1d 100644 --- a/app/class/controllerconnect.php +++ b/app/class/controllerconnect.php @@ -34,7 +34,9 @@ class Controllerconnect extends Controller { if (isset($_POST['pass'])) { $this->user = $this->usermanager->login($_POST['pass']); - $this->usermanager->writesession($this->user); + if($this->user != false) { + $this->usermanager->writesession($this->user); + } } if (!empty($id)) { $this->routedirect('artread/', ['art' => $id]); |