@@ 153-155 (lines=3) @@ | ||
150 | $this->eventManager()->dispatch($user); |
|
151 | ||
152 | $url = $this->Auth->redirectUrl(); |
|
153 | if (substr($this->Auth->redirectUrl(), -5) == 'login') { |
|
154 | $url = ['controller' => 'pages', 'action' => 'home']; |
|
155 | } |
|
156 | ||
157 | return $this->redirect($url); |
|
158 | } |
|
@@ 234-236 (lines=3) @@ | ||
231 | $this->Flash->success(__("Your account has been created successfully !")); |
|
232 | ||
233 | $url = $this->Auth->redirectUrl(); |
|
234 | if (substr($this->Auth->redirectUrl(), -5) == 'login') { |
|
235 | $url = ['controller' => 'pages', 'action' => 'home']; |
|
236 | } |
|
237 | ||
238 | return $this->redirect($url); |
|
239 | } |