Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function login($username = null, $password = null) {
- $logged = $this->Auth->login(); // result is boolean(true) all the time
- $userObj = $this->Auth->user(); // only the user name
- switch ($userObj['role']) { ... // Illegal string offset 'role'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement