mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +00:00
Prepare for moving into monorepo
This commit is contained in:
43
src/Bundle/ChillMain/Controller/LoginController.php
Normal file
43
src/Bundle/ChillMain/Controller/LoginController.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
namespace Chill\MainBundle\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
|
||||
|
||||
class LoginController extends Controller
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @var AuthenticationUtils
|
||||
*/
|
||||
protected $helper;
|
||||
|
||||
public function __construct(AuthenticationUtils $helper)
|
||||
{
|
||||
$this->helper = $helper;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show a login form
|
||||
*
|
||||
* @param Request $request
|
||||
* @return Response
|
||||
*/
|
||||
public function loginAction(Request $request)
|
||||
{
|
||||
|
||||
return $this->render('ChillMainBundle:Login:login.html.twig', array(
|
||||
'last_username' => $this->helper->getLastUsername(),
|
||||
'error' => $this->helper->getLastAuthenticationError()
|
||||
));
|
||||
}
|
||||
|
||||
public function LoginCheckAction(Request $request)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user