coolcsn / CsnUser

Authentication module using Doctrine
MIT License
33 stars 36 forks source link

Routing issue #47

Open alexandermihalcea opened 8 years ago

alexandermihalcea commented 8 years ago

Hi and thanks for the modules.

They work fine except I'm having an issue with the actions and routing.

To be more specific, actions of more words (eg editProfile) don't work when called from the url like "edit-profile", however they work ONLY when called exactly as the action's definition in the controller (editProfile).

I googled a bit and found answers only for issues the other way around (people were complaining that their camelcased actions were working only if called with dashes).

I am currently using user, authorize and acl navigation modules.

alexandermihalcea commented 8 years ago

I think I've found the solution the old fashioned way (disable stuff until it works).

The fix is to edit the acl.global.php and change the routes in resources => allow from camelcase to dashed (eg from editProfile to edit-profile and so on).

If you're using the db storage, remember to do the same in the db.