Can I only log in with the systems built-in user?

0
1、How can I create a user myself in the system and then log in with the newly created user? 2、It's similar to having a user management module. I need to perform additions, deletions, modifications, and queries on user management. Then, the newly added users can log in to the System, and they can also log in with the user in the system, such as the admin account. How can this be achieved?   3、I have now created a User domain and generalized the User in the System. I found that the Account users I created cannot log in in the login form   4、When I tried to submit the Account form, I created a user for System.User through microflow, but the account and password couldn't be entered and the created result was blank. How should I design microflow?   Some of my configurations are as follows  
asked
2 answers
0

Hi 梦林 张

 

I can see few problem in the flow, I can guide you in this-> The goal is to sign-up and sign-in into the system

Sign-Up:.

step1: create a Non-persistance object which has username, password(strin) and anyother attribute you want, Have a button on the landing page to call up this signup option.

step2:When user click's create the object and show the edit page with the needed validation, once user enter the values ask him to submit.

step3: Call a microflow in the submit button where Retrieve the UserRole you want (use role token e.g. id = '[%UserRole_YourRole%]') and

Create ObjectAdministration.Account (set Name,password ect),add the retrieved UserRole object to the account’s userRoles/reference set[association] then commit the account object and close the signup page.

 

Your account is created now;

 

Sign-in:

Use this username and password to sign-in to the app using mendix default signin

 

I hope this help's

answered
0

Hi 梦林 张,

Simply use the Administrator account that comes by default in Mendix which was in Marketplace module. 

With this admin account, you can open the app, go to your User Management page, and create, edit, or delete users directly. The newly created users can then log in to the system using their own usernames and passwords.

answered