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 Object → Administration.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
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.