Sign-Up configuration

Auth Module adds some flexibility into Sign Up configuration. Go to Modules section and click to the Auth Module to open its settings.

  • SignUp Groups: defines list of groups where the user will be a member of a group after signup.
  • SignUp: allows users signup and get accounts in your application.
  • Session timeout (minutes): defines how long the user’s session will be active without user activity. After the timeout value the user’s session will be terminated.
  • Failed login delay (in ms): defines the delay time for responses after failed login attempts to prevent bruteforce attacks.
  • Email confirmation required: defines if the user has to confirm registration via email.
  • Signed-Up User Active: set active=true for each newly-created User object if enabled.
  • Groups tab allows to create and configure list of user groups.

configure_registr_fe

Sign Up process can be configured in the web-application. Once the project is created, the following business process are preconfigured too:

  • login inputString: email value validation;
  • Confirm password inputString: checks if the passwords are matched;
  • Register button: creates new User object and validates the registration;

configure_register_button

Custom sign-up business process creation

  1. In the interface editor, create a Container and put a few Input elements in it like on the example below
    1_fe_layout
    • E-mail field is responsible for entering and validating the user's email [Input (email) for web applications and Email fieldfor mobile applications];
    • The second input is responsible for entering and validating a new user password [Input (password) for web applications and Pass field for mobile applications];
    • The third input is needed to repeat the password created by the user and check if these are matched [Input (password) for web applications and Pass field for mobile applications];
    • Register button starts the business process of validating all entered values;
    • Login button initiates Navigate block to the appropriate user authorization form;
  2. Create business process associated with the Register button. onClick event would be the entry point for this process2_onClick
  3. First of all, logic has to be built that way so to check and validate the entered fields. Get Properties blocks are used to get data.
    3_validateInputs
  4. The values entered by the user (Value) are passed to the input of the Server request POST /register/ process.
    4_register_post
  5. Upon successful completion of the Server request POST /register/ process, the Auth Token (token) is returned from the output, which is assigned to the current user session (Set Auth Token) and the user is redirected to the desired page defined by the Navigate block.
    5_navigate
Was this article helpful?

AppMaster.io 101 Crash Course

10 modules
2 weeks

Not sure where to start? Get going with our crash course for beginners and explore AppMaster from A to Z.

Start Course
Development it’s so easy with AppMaster!

Need More Help?

Solve any issue with the help of our experts. Save time and focus on building your applications.

headphones

Contact Support

Tell us about your problem, and we’ll find you a solution.

message

Community Chat

Discuss questions with other users in our chat.

Join Community