diff --git a/app/core/User.php b/app/core/User.php index cdabde0..774e4c4 100644 --- a/app/core/User.php +++ b/app/core/User.php @@ -31,6 +31,7 @@ class User // Check if username and password match if (!$this->authenticate($user['username'], $user['password'])) { + $this->loggedIn = FALSE; $this->logout(); $this->session->flash('Kontodetaljer er blitt endret, vennligst logg inn igjen', 'warning'); return;