summaryrefslogtreecommitdiff
path: root/src/web/_controller/index.php
blob: 0822a2217b7baa6c8394a4d9520605e4ae7ebddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php /* Copyright (c) 2024 Freya Murphy */
class Index_controller extends XSS_Controller {

	public function index(): void {
		$auth_model = $this->load_model('auth');
		$session = $auth_model->session();

		$home = $this->get_url('home');
		$login = $this->get_url('auth/login');

		$this->redirect($session ? $home : $login);
	}

}

?>