You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
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?
The text was updated successfully, but these errors were encountered: