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.
16 lines
175 B
PHP
16 lines
175 B
PHP
<?php
|
|
|
|
class UserModule extends CustomModule
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
if (!$this->uid)
|
|
{
|
|
Browser::redirect('/login');
|
|
}
|
|
}
|
|
}
|
|
|
|
?>
|