Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allowing users/login #94

Closed
arilia opened this issue Nov 5, 2015 · 1 comment
Closed

allowing users/login #94

arilia opened this issue Nov 5, 2015 · 1 comment

Comments

@arilia
Copy link

arilia commented Nov 5, 2015

cake 3 documentation says we don't need and don't have to call Auth->allow for login action:

You should not add the “login” action of your UsersController to allow list.
Doing so would cause problems with normal functioning of AuthComponent.

So how can I allow all my users to access users/login action when I use ACL? Should I call Acl->allow($user, 'controllers/users/login) for each user in my application? In cake 2 I used to put $this->Auth->allow('login'); in UsersController beforeFilter method

@arilia
Copy link
Author

arilia commented Nov 5, 2015

I see now that users are already allowed to login action by default even using ACL.

There's no need to explicitly allow them

My bad I did not try it before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants