src/Towel/Controller/User.php
public function loginShow()
    {
        if ($this->isAuthenticated()) {
            $this->setMessage('warning', 'you are already logged in');
            return $this->redirect('/');
        }

        return $this->twig()->render('user\login.twig');
    }
public function loginShow()
    {
        if ($this->isAuthenticated()) {
            $this->setMessage('warning', 'you are already logged in');
            return $this->redirect('/');
        }

        return $this->twig()->render('user\login.twig');
    }
public function loginShow ( ) { if ( $ this -> isAuthenticated ( ) ) { $ this -> setMessage ( 'warning' , 'you are already logged in' ) ; return $ this -> redirect ( '/' ) ; } return $ this -> twig ( ) -> render ( 'user\login.twig' ) ; }
Shows the login form.

@return string|\Symfony\Component\HttpFoundation\RedirectResponse
Shows the login form .