|
@@ 916-921 (lines=6) @@
|
| 913 |
|
|
| 914 |
|
$logged = $this->forward()->dispatch('playgrounduser_user', array('action' => 'ajaxauthenticate')); |
| 915 |
|
|
| 916 |
|
if ($logged) { |
| 917 |
|
return $this->redirect()->toUrl($this->url()->fromRoute('frontend/' . $game->getClassType() . '/' . $game->nextStep('index'), array('id' => $game->getIdentifier(), 'channel' => $this->getEvent()->getRouteMatch()->getParam('channel')))); |
| 918 |
|
} else { |
| 919 |
|
$this->flashMessenger()->setNamespace('zfcuser-login-form')->addMessage('Authentication failed. Please try again.'); |
| 920 |
|
return $this->redirect()->toUrl($this->url()->fromRoute('frontend/' . $game->getClassType() . '/login', array('id' => $game->getIdentifier(), 'channel' => $this->getEvent()->getRouteMatch()->getParam('channel')))); |
| 921 |
|
} |
| 922 |
|
} |
| 923 |
|
|
| 924 |
|
$form->setAttribute('action', $this->url()->fromRoute('frontend/'.$game->getClassType().'/login', array('id' => $game->getIdentifier(), 'channel' => $this->getEvent()->getRouteMatch()->getParam('channel')))); |
|
@@ 1067-1072 (lines=6) @@
|
| 1064 |
|
|
| 1065 |
|
$logged = $this->forward()->dispatch('playgrounduser_user', array('action' => 'ajaxauthenticate')); |
| 1066 |
|
|
| 1067 |
|
if ($logged) { |
| 1068 |
|
return $this->redirect()->toUrl($this->url()->fromRoute('frontend/' . $game->getClassType() . '/' . $game->nextStep('index'), array('id' => $game->getIdentifier(), 'channel' => $this->getEvent()->getRouteMatch()->getParam('channel')))); |
| 1069 |
|
} else { |
| 1070 |
|
$this->flashMessenger()->setNamespace('zfcuser-login-form')->addMessage('Authentication failed. Please try again.'); |
| 1071 |
|
return $this->redirect()->toUrl($this->url()->fromRoute('frontend/' . $game->getClassType() . '/login', array('id' => $game->getIdentifier(), 'channel' => $this->getEvent()->getRouteMatch()->getParam('channel')))); |
| 1072 |
|
} |
| 1073 |
|
} |
| 1074 |
|
|
| 1075 |
|
$redirect = $this->url()->fromRoute('frontend/'.$game->getClassType().'/login', array('id' => $game->getIdentifier(), 'channel' => $this->getEvent()->getRouteMatch()->getParam('channel'))) . ($socialnetwork ? '/' . $socialnetwork : ''). ($redirect ? '?redirect=' . $redirect : ''); |