Authentication
Catalyst Authentication features enable you to manage the user authentication of your Catalyst app, add users, and configure their user accounts.
Create a New User Instance
You can create a new user instance, and enable the methods defined in this class to access the instance object. This will prevent unnecessary server calls.
You must pass the user’s details to the newUser() method, as shown in the code syntax below. You must pass the user’s email address and last name mandatorily to create the instance successfully.
copyvar user = ZCatalystApp.getInstance().newUser(String lastName, String email);
Parameters:
- lastName: The last name of the new user
- email: Email address of the user, to which the invitation mail will be sent
A sample code snippet is shown below:
copyvar user = ZCatalystApp.getInstance().newUser("Burrows", "emma@zylker.com")
Last Updated 2023-09-03 01:06:41 +0530 +0530
Yes
No
Send your feedback to us
Skip
Submit