Usage
How to register a new user?
There are several ways to add a user to JFW, you can choose which way to implement the register method that suits your needs.
Notes: JFW doesn't try to mutate your inputs. The instance you create is for providing the required data to add a new user. If you want to get the newly created user, you have to use methods to get the one you want.
Create a new instance, then assign field values, then use CUser.Add to add the instance to the database. (This way will return the newly created instance).
Create a new instance, then assign field values, then use CUser.RegisterUser to add the instance to the database. (This way will return the registration status not the newly created instance, you can retrieve the newly created instance by adding out parameter if necessary).
You can fill in pre-defined parameters in CUser.RegisterUser.
How to log in as a user?
To log in as a user, you have to call CUser.LoginWith__, then it will return the login status for the data you provided. If the status is LoginStatus.Success, you can get the user instance by providing an output parameter. Then you can use the user instance to do other things like set the session, etc.
Get the login status by calling CUser.LoginWith__.
Last updated
Was this helpful?