On 05-Nov-2006, at 11:20, gobblez wrote:
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 inC:\Program Files\xampp\htdocs\app\controllers\components \ob_auth.php online 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
Do you have a User model, and is that model in your controller's uses array?
Also curious, why line 36 had different syntax than 37, when it's doingthe same thing. One has curly brackets and quotes, one doesn't.
As the Perlers say: There's More Than One Way To Do It. s.
PGP.sig
Description: This is a digitally signed message part
