mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-08 13:18:22 +00:00
fix folder name
This commit is contained in:
48
src/Bundle/ChillMainBundle/Controller/LoginController.php
Normal file
48
src/Bundle/ChillMainBundle/Controller/LoginController.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
namespace Chill\MainBundle\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
|
||||
|
||||
/**
|
||||
* Class LoginController
|
||||
*
|
||||
* @package Chill\MainBundle\Controller
|
||||
*/
|
||||
class LoginController extends AbstractController
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @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('@ChillMain/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