php - How can Laravel 4 be used to support two authentication methods for two different areas of a site? -
php - How can Laravel 4 be used to support two authentication methods for two different areas of a site? -
i'm building site has 2 areas: main site, , admin area.
the main site has have facebook login functionality (i'm looking @ using sammy k's laravel facebook sdk) , admin area going have database-based login; laravel login system.
i'm wondering how approach this, , whether anyone's done before. design considerations:
should have 2 separate user tables? should utilize 2 route filters, 1 each auth type? if have 1 user table, should utilize different groups (somehow - i'm not sure they'll built in?) or indicator allow scheme know whether it's database-based, user/password login, or facebook login?
since using facebook sdk,
you don't need user table begin in most cases/projects. if indeed want utilize 2 different authentication, yes, utilize 1 each auth type. assign different routes each of case. don't need bring different entities , create sandwich. php laravel facebook-login
Comments
Post a Comment