fuel-stats/core/middlewares/RequireAuth.php

13 lines
205 B
PHP
Raw Permalink Normal View History

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