Guest User

Untitled

a guest
Oct 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. /**
  2. * @return void
  3. */
  4. public function authenticateAction() {
  5.  
  6. $this->authenticationManager->authenticate();
  7.  
  8. if($this->authenticationManager->getSecurityContext()->getAccount()){
  9. $this->flashMessageContainer->add('Sie haben sich erfolgreich angemeldet.','Erfolg','Ok');
  10. $this->redirect('index');
  11. }else{
  12. $this->flashMessageContainer->add('Logindaten sind nicht korrekt.','Fehler','Error');
  13. $this->redirect('index');
  14. }
  15. }
Add Comment
Please, Sign In to add comment