Got the log out working.

This commit is contained in:
Josh Sherman 2013-12-16 22:17:39 -05:00
parent 74257193f1
commit 34c41764b5
4 changed files with 26 additions and 19 deletions

View file

@ -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();
}
}