You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function indexAction()
{
if (!$this->zfcUserAuthentication()->hasIdentity()) {
return $this->redirect()->toRoute(static::ROUTE_LOGIN);
}
return new ViewModel();
}
If you want to redirect to a custom route, actually you have to extends UserController...
Some routes are defined as constants in UserController
In order to change these routes, we should extend UserController.
It should be configurable with the moduleOptions.
I have overwrited routes to use
dashboard/user
dashboard/user/login
[...]
using UserController and action from ZfcUser.
If I go to /dashboard/user, and if I'm not logged, UserController redirect me to ROUTE_LOGIN (/user/login) instead of /dashboard/user/login
IMO, Configurable options is easier than extend UserController
What is your opinion about this ?
The text was updated successfully, but these errors were encountered: