tags:

views:

12

answers:

1

Hello,

I'm creating a application based on REST requests and I'm using SecurityComponent for HTTP Authorisation. My question is - how can I use a User model with it? Instead of giving a array of usernames and passowrds...

Cheers, Lucas

A: 
  1. Try to copy file app_controller.php to /app folder
  2. Try to add the line

    var $uses = array('User');

after

class AppController extends Controller

line

netme
Yes, I know about that :) However it's not what meant... I want to be able to identify user (from my user model) based on login data from HTTP Authorization
Luca Brasi