Thanks CraZyLeGs, you pointed me in the right direction. I have now
amended my login action to this...

function login() {
        if(isset($this->params['data'])) {

                $user_data = $this->params['data']['User'];
                $username = $user_data['username'];
                $password = md5($user_data['password']);
                $userdata[] = $this->User->find("User.username = '$username' AND
User.password = '$password'");

                $groupid = $userdata['0']['User']['group_id'];

                $user_data[group_id] = $groupid;

                $auth_num = $this->othAuth->login($user_data);
                $this->set('auth_msg', $this->othAuth->getMsg($auth_num));
        }
}

It is all working as it should now, but I was wondering if this was
indeed the best way to do it? Should the logic to determine the group
membership of the user not be in the component itself?

Regards,

Graham


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to