Skip to content

Routes defined in UserController as constants ROUTE_ should be configurable #684

@MadCat34

Description

@MadCat34

Some routes are defined as constants in UserController

const ROUTE_CHANGEPASSWD = 'zfcuser/changepassword';
const ROUTE_LOGIN        = 'zfcuser/login';
const ROUTE_REGISTER     = 'zfcuser/register';
const ROUTE_CHANGEEMAIL  = 'zfcuser/changeemail';

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions