mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-17 18:52:49 +00:00
fix directory structure for branch 1.5 & bundle ChillMain
This commit is contained in:
43
src/Bundle/ChillMainBundle/Controller/LoginController.php
Normal file
43
src/Bundle/ChillMainBundle/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