Results 1 to 2 of 2
  1. #1
    WTF Groupie Array
    Join Date
    Apr 2007
    Posts
    125
    Thanks
    0
    Thanked 0 Times in 0 Posts

    When using AuthComponent, is it possible to use a table other than "users"?

    When using AuthComponent, is it possible to use a table other than "users"? I already have a table "employees" that tracks all other attributes and these are the only people that will be logging in

  2. #2
    Junior Member Array
    Join Date
    Oct 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts


    You are not required to use the User model, Cakephp only uses it as a default. You may set another model directly by setting that property manually by setting following property of the auth component:

    Code:
    $this->Auth->userModel = 'Employee';


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •