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

Can't log into my application #28

Open
Djohane opened this issue Jul 22, 2018 · 1 comment
Open

Can't log into my application #28

Djohane opened this issue Jul 22, 2018 · 1 comment

Comments

@Djohane
Copy link

Djohane commented Jul 22, 2018

Hi
Since I started the AclManager I couldn't log into my application. and I alwys got false from login() methode. In order to resolve the probleme i digged into cakephp core files specially in FormAuthenticate and I found out that there is a problem in $settings variable : $this->settings['fields']['username'] issues login as a field which is not expected. I think what we shoud do here is using keys of $this->settings['fields'] instead of its values.
The version of is cakephp 2.10
Any idea? or it's a misunderstanding from my side?

@Djohane
Copy link
Author

Djohane commented Jul 22, 2018

I think I resolved the problem:
instead of $fields = $this->settings['fields']; in FormAuthenticate.php do this $fields = $this->settings['fields']; + $fields['username'] = 'username'; because what we need here is key not a value.
do the same thing in BaseAuthenticate.php
what do you think?

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

1 participant