protected function login($args) { $verified = BasicAuth::verify($args['username'], $args['password']); if ($verified) { $this->redirect('home'); } }