User creation

Hi AppMaster Team,

I’m reaching out for assistance with setting up user authentication in my application. I’ve been trying to implement user creation (sign-up) and login functionalities but am struggling to connect the interface with the business processes properly. Here’s where I’m stuck:

  1. User Sign-Up:
    I’ve designed the interface with fields for First Name, Last Name, Email, and Password, along with a “Sign Up” button.
    I created a business process to handle data validation, password hashing, and saving users to the database.
    Issue: The business process isn’t receiving data from the interface when the button is clicked. I can’t map the input fields (e.g., firstName, email) to the BP parameters correctly.
  2. User Login:
    The login interface has Email and Password fields, but the BP fails to validate credentials against the database.
    Issue: I’m unsure how to structure the BP to compare hashed passwords or redirect users after successful login.

I’ve followed tutorials but still can’t find clear steps for:

  • Linking interface inputs to BP parameters.
  • Properly configuring the “Sign Up” and “Login” button events.
  • Handling errors (e.g., duplicate emails, invalid passwords).

Could you please:

Point me to specific guides or documentation for user authentication workflows?
Clarify how to map interface variables to BP inputs?
Recommend best practices for structuring these processes?

I’d greatly appreciate any help to resolve this. Thank you!

Did you read manuals here?

And here (it may be outdated and uses previous version of interface but logic in general remains the same)

Briefly, you need to

  1. create BP for your button in application.
  2. Get data from input fields
  3. Pass this data to signup endpoint (make sure that you disable authorization middlware for endpoint access).
  4. Take Token from enpoint answer and set it for current user (Set Auth Token)