Last active
August 11, 2016 06:08
-
-
Save rawroland/9929df558e66ed104c186fd309755069 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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