Login Page(Need urgent help)

0
I have created a Sign Up page where I want to select manager  or team leader from the  dropdown and once I sign using the username, the user should be directed to the corresponding dashboard of the selected dropdown.   How  can I write this in microflow and create object, In domain model I have created a enumeration with select roles but I am not able to add in database as well as filter based on select roles? can someone tell me the process as since I am new here and could not find in documentation. Please need urgent help.    
asked
1 answers
1

Hi Prajyot,

 

To answer directly: you can achieve this by using a decision point, with the outgoing paths being the various user roles. After you can retrieve the role as you are doing in your picture using this: https://docs.mendix.com/refguide/xpath-keywords-and-system-variables/#32-user-roles

 

If this is desirable frome a security perspective is another topic. This way you let users define the access they will gain to the application. This is a clear security concern. It may be a good idea to reconsider design so that for instance access is predefined on the sign up form. Next to this you could add some validation or approval before the account is created.

Finally, there are some good structures and reusable components here: https://docs.mendix.com/appstore/modules/forgot-password/ 
Please take a look and see what you can reuse.

 

Hope this helps!

answered