Hi, its much simpler, follow the steps on the cookbook. http://book.cakephp.org/complete/172/Authentication
greets Andreas Dhileepen Chakravarthy schrieb: > Thanks for your reply. I am new for cakePHP. I find i did a mistake in > > function validateLogin($data) > { > $user = $this->find(array('username' => $data['username'], > 'password' => $data['password']), array('id', 'username')); > if(empty($user) == false) > return $user['User']; > return false; > } > > how do i wrote my query in this function validateLogin() > "select username from users where username = $data['username'] and > password=$data['password']" > > Regards, > Dhileepen > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---