@@ 1034-1039 (lines=6) @@ | ||
1031 | ||
1032 | if ($user || $service->getOptions()->getCreateUserAutoSocial() === true) { |
|
1033 | //on le dirige vers l'action d'authentification |
|
1034 | if (!$redirect && $userOptions->getLoginRedirectRoute() != '') { |
|
1035 | $redirect = $this->frontendUrl()->fromRoute( |
|
1036 | $this->game->getClassType().'/login', |
|
1037 | array('id' => $this->game->getIdentifier()) |
|
1038 | ); |
|
1039 | } |
|
1040 | $redir = $this->frontendUrl()->fromRoute( |
|
1041 | $this->game->getClassType().'/login', |
|
1042 | array('id' => $this->game->getIdentifier()) |
@@ 61-70 (lines=10) @@ | ||
58 | 'id' => $this->game->getIdentifier(), |
|
59 | ) |
|
60 | ) .$reason; |
|
61 | } else { |
|
62 | $this->flashMessenger()->addMessage("An error occurred. Please try again later"); |
|
63 | $reason = '?Error=1'; |
|
64 | $noEntryRedirect = $this->frontendUrl()->fromRoute( |
|
65 | $this->game->getClassType(), |
|
66 | array( |
|
67 | 'id' => $this->game->getIdentifier(), |
|
68 | ) |
|
69 | ) .$reason; |
|
70 | } |
|
71 | ||
72 | return $this->redirect()->toUrl($noEntryRedirect); |
|
73 | } |