I'm getting errors with the obAuth component.

Notice: Undefined property: UsersController::$User in C:\Program
Files\xampp\htdocs\app\controllers\components\ob_auth.php on line 39

Fatal error: Call to a member function find() on a non-object in
C:\Program Files\xampp\htdocs\app\controllers\components\ob_auth.php on
line 39

The error happens after clicking the login button

36: $username = $data["{$this->user_fields['username']}"];
37: $password = $data[$this->user_fields['password']];
38: $conditions = $this->user_model . "." .
$this->user_fields['username'] . "='" . $username . "' AND " .
$this->user_model . "." . $this->user_fields['password'] . "='" .
md5($password) . "' AND active='1'";
39: $user = $this->controller->{$this->user_model}->find($conditions);

Here is the full code for obAuth:
http://bakery.cakephp.org/articles/view/130

Also curious, why line 36 had different syntax than 37, when it's doing
the same thing.  One has curly brackets and quotes, one doesn't.


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

Reply via email to