CakePHP 2 separate login tables

后端 未结 5 1754
醉梦人生
醉梦人生 2021-01-01 03:24

I have a Cake website and it needs to have two separate logins, each one will have their own login form and see different pages, it would be nice to have two different table

5条回答
  •  北荒
    北荒 (楼主)
    2021-01-01 03:49

    When they have to login there is a similarity: Both will require it to enter credentials, usually an username/email and password. So a users table and a foo_profiles table and a bar_profiles table depending on the user type should work also.

    If you really want to go with two total different tables and the MVC stack for them, then simply use two different controllers FooUsers and BarUsers and inside of each create a customized login method.

提交回复
热议问题