Redirecting to index if no login present.
This commit is contained in:
parent
58f8db6c97
commit
d2711f2057
|
@ -82,7 +82,7 @@ class UserController extends Controller
|
||||||
$login = $request->request->get('login');
|
$login = $request->request->get('login');
|
||||||
|
|
||||||
if (!$login) {
|
if (!$login) {
|
||||||
throw new \InvalidArgumentException('No login information present');
|
return $this->redirectToRoute('index');
|
||||||
}
|
}
|
||||||
return $this->redirectToRoute('user_show', ['login' => $login]);
|
return $this->redirectToRoute('user_show', ['login' => $login]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue