Got the log out working.
This commit is contained in:
parent
74257193f1
commit
34c41764b5
4 changed files with 26 additions and 19 deletions
|
@ -7,6 +7,8 @@ class logout extends UserModule
|
|||
$user = new User();
|
||||
$user->setAuth($user->getAuthenticated('uid'), $user->generateToken());
|
||||
|
||||
setcookie('__auth', '', time() - Time::YEAR, '/');
|
||||
|
||||
Browser::goHome();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue