13 lines
205 B
PHP
13 lines
205 B
PHP
|
<?php
|
||
|
|
||
|
class RequireAuth {
|
||
|
public function handle() {
|
||
|
if (!isset($_SESSION['user'])) {
|
||
|
header('Location: /auth/signin');
|
||
|
exit();
|
||
|
}
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
}
|