public function login($req, $res)
{
$this->csrf($req);
if (Session::get('auth') && Session::get('user')) {
return $res->withStatus(301)->withHeader('Location', $this->router->pathFor('dashboard'));
}
$this->data['auth_type'] = $this->containerSlim->get('systemOptions')->getValue('email_or_login');
$this->view->render($res, 'admin\\login.twig', $this->data);
}