Jump to content

user login


jaymc

Recommended Posts

I am creating a system which requires our customers to have there own database which contains 40+ tables

 

One of those tables is a users table so they can add their own users with group priveleges etc

 

All our customers users will login through the same interface (front end login page)

 

My question is, whats the best way to authenticate the user without requiring:

1: company ID/username

2: users login email

3: password

 

I have thought of two solutions but both I do not want to use

 

Solution 1:

carbon copy all our customers user details into a master table which is used to login. that way only login email and password required however

 

Solution 2:

User an authentication url to set a cookie containing the customer ID so all logins will use the customers database users table

 

Solution 3:

loop through all customers DB's querying their users table for the correct login email and password

 

Any other ideas? If not, which of the above do you think is the best?

 

Link to comment
https://forums.phpfreaks.com/topic/162659-user-login/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.