I've to make a cakePhp authentification, and I wish to use the "Auth" component. I'm trying to see if it fill my requirement:
I need to authenticate users with their email OR their customerId, (with an addition password of course). I can't find if it is possible to have two fields(or more) on which the authentication can be done
I've several parts on which I need to be authenticated. But I need differents granularity:
- For some things, it's the whole controller which should not be accessible(if possible with exception(e.g. all the "User" controller, except the login/register action) for other I really need that it's the whole controller(e.g. the cart controller)
- Sometimes I need that only some actions are unavailable without being logged
- Sometimes I need that only a part of the view isn't displayed(e.g. login element not displayed)
- Does the component manage action like password change? Because if the user change its password I need that he did not get disconnected.
Thank you very much for your help