Hi there guy, i hope someone can bring some light to my thoughts,
Imagine you have a factory, and for that factory you need a system, that manages stock, stock materials, orders and the production line, with that i need to split the system in two parts, the management part (stocks, stock materials, orders) and in the production line
i can split it like this
myapp.com/login
myapp.com/management/
myapp.com/production/
My dilemma is, i would like to make only one login and use the same users table for both (management and production line), but then in some way redirect the user to management or production based on where (the device) they are logging in from, example:
If i reach the login in the office i redirect to the managment part.
if i reach the login in the tablet on the production line i redirect to the production part.
I cant use roles for this because although normal workers can't user the managment part of the system, all administrators, can in fact go to the production line to do some work too.
So if i did a role based authorization, if the administrative were to login in the production line, he would be redirected to the managment part anyway and not the production part.
What the best solution for this?
Did i manage to explain myself right? if not i can try to explain better what i want
Thanks in advance for the help, i really need it