I have an app where the patient needs to log in and log their sleep activity etc. then the practitioner needs to log in to get reports etc. Each log in goes to a different screen. I have it set at the moment that a tick box determines which if it is a practitioner, if it is a different button will come up directing to the different page. Problem is the user name and password combo will log the user into both the patient and practitioner profiles.
Is there a way that I can limit the log in to the either one or the other. So add another field that says practitioner or patient and that determines which profile a user can go to?
I added a blank page and put a workflow where if the user was practitioner - yes then go to practitioner page, if no then go to patient page. It means one log in, no tick box. the blank page opens quickly and looks kinda seemless. Do people think this is ok as an answer?
Zeroic
3
Ideally, you can have an Option set called Roles that has the roles of Practitioner and Patient. Set this in your User data type as an attribute (Role)
Now when the Role is Practioner, redirect them to the respective page, and similarly for the Patient Role as well
You can keep a single log-in as well instead of maintaining two separate ones, but depends entirely on your use-case
system
Closed
4
This topic was automatically closed after 70 days. New replies are no longer allowed.