login($username, $password); } /** * Show the application login page. */ public function index(){ if(isset($_POST['submit'])){ $this->authenticate($_POST['email'], $_POST['password']); } $template = new Template(); return $template->render('login', []); } }