1. Home
  2. Docs
  3. UniREST Solution 3.5
  4. UniREST Client
  5. Login and Registration

Login and Registration

The first thing to do for opening a communication channel between your Unity game (UniREST Client) and your Server (UniREST Server) is to perform a login operation.

Only after the successful user login, you can perform operations on the Server (have access to the Database, manage remote files, etc.)

The login system provided by the UniREST solution requires a unique username and a password. The UniREST Server does not enforce the use of a specific string form for usernames and passwords: this means that if you need your users to have specific usernames and/or passwords, you have to develop this feature by your own.

Just keep in mind that usernames and password are stored in your Database with these characteristics:

  • the username is a string, it has a limit of 32 characters and must be unique;
  • the password is a string without limits.

Moreover, keep in mind that the UniREST login is required just to authorize the communication between your game and your server through the UniREST solution. This means that you can manage users account with other systems (for example, with Apple GameCenter, Google Play or other third party services) and then use that account credentials to register the user also in the UniREST system.

Since the UniREST system requires a login, it also has a built-in user registration feature.

Date of registration and date of the last log-in

Starting from version 2.2, the UniREST Server application tracks the dates when a new user is registered and when it has logged-in the last time. This can be pretty useful if, for example, you want to show how long the player has been in the Game or how long it has been since he last logged in.


Articles