aboutsummaryrefslogtreecommitdiff
path: root/app/class/controllerconnect.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-12-23 20:14:08 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-12-23 20:14:08 +0100
commite6a313f0ce599e14f2d6c55c8080582f0d539d10 (patch)
tree7076845bf8d59c7b1391917d875f014858fc2cc8 /app/class/controllerconnect.php
parente8566a57cf1b9cc2eed10429f27840d17da945ef (diff)
downloadwcms-e6a313f0ce599e14f2d6c55c8080582f0d539d10.tar.gz
wcms-e6a313f0ce599e14f2d6c55c8080582f0d539d10.zip
admin connect
Diffstat (limited to 'app/class/controllerconnect.php')
-rw-r--r--app/class/controllerconnect.php4
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]);