Skip to content

Instantly share code, notes, and snippets.

@rawroland
Last active August 11, 2016 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rawroland/9929df558e66ed104c186fd309755069 to your computer and use it in GitHub Desktop.
Save rawroland/9929df558e66ed104c186fd309755069 to your computer and use it in GitHub Desktop.
<?php
...
public function loginAction() {
if($this->authorizationChecker->isGranted('IS_AUTHENTICATED_FULLY')) {
return $this->dashboardAction();
}
$lastEmail = $this->authentication->getLastUsername();
$error = $this->authentication->getLastAuthenticationError();
return $this->templating->renderResponse(':users:login.html.twig', ['lastEmail' => $lastEmail, 'error' => $error]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment