The model was getting a bit more complicated than I would have liked. Went back to using straight redis commands and moved some of the user model logic into the custommodule.
15 lines
221 B
PHP
15 lines
221 B
PHP
<?php
|
|
|
|
class logout extends UserModule
|
|
{
|
|
public function __default()
|
|
{
|
|
$this->redis->hset('user:' . $this->uid, sha1(microtime()));
|
|
|
|
setcookie('__auth', '', time() - Time::YEAR, '/');
|
|
|
|
Browser::goHome();
|
|
}
|
|
}
|
|
|
|
?>
|