Class UsernamePasswordRequest
Request for signing up or signing in a Username Password account.
Inherited Members
Namespace: Unity.Services.Apis.PlayerAuthentication
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "UsernamePasswordRequest")]
[Preserve]
public class UsernamePasswordRequest
Constructors
UsernamePasswordRequest(string, string)
Initializes a new instance of the Username
Declaration
[Preserve]
public UsernamePasswordRequest(string username = null, string password = null)
Parameters
Type | Name | Description |
---|---|---|
string | username | The username. Case insensitive. Length must be between 3-20 with the allowed characters a-z, 0-9 and the symbols [.][-][@][_]. (required). |
string | password | The password. Length must be between 8-30 and contain at least one uppercase letter, at least one lowercase letter, at least one number and at least one symbol. (required). |
Properties
Password
The password. Length must be between 8-30 and contain at least one uppercase letter, at least one lowercase letter, at least one number and at least one symbol.
Declaration
[DataMember(Name = "password", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Password { get; set; }
Property Value
Type | Description |
---|---|
string | The password. Length must be between 8-30 and contain at least one uppercase letter, at least one lowercase letter, at least one number and at least one symbol. |
Username
The username. Case insensitive. Length must be between 3-20 with the allowed characters a-z, 0-9 and the symbols [.][-][@][_].
Declaration
[DataMember(Name = "username", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Username { get; set; }
Property Value
Type | Description |
---|---|
string | The username. Case insensitive. Length must be between 3-20 with the allowed characters a-z, 0-9 and the symbols [.][-][@][_]. |