Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

SGUserFace's avatar

auth with 3 fields

How can I build auth with 3 fileds?

like company, username and password.

the tables structure is: companies -> plants -> user_plant -> users

0 likes
1 reply
mcardosob's avatar

Hello,

Why not auth just with 2 fields like username and password.

Don't forget that the username must be unique.

And after the auth your can analyse what is the companie of the user.

Bruno MC

Please or to participate in this conversation.