Chuyển tới nội dung chính

ProjectVPasswordRegistrationInput class

What the player typed into the register form.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Authentication

public sealed class ProjectVPasswordRegistrationInput

Constructors​

ProjectVPasswordRegistrationInput(string username, string password, string? email, string? displayName)​

Creates the register form input.

public ProjectVPasswordRegistrationInput(string username, string password, string? email = null, string? displayName = null);

Parameters

NameTypeDescription
usernamestringThe username to register; must not be null or blank.
passwordstringThe password to register; must not be null or empty.
emailstring?The player's email address, or null to skip it.
displayNamestring?The name other players see, or null to skip it.

Exceptions

ExceptionWhen
ArgumentNullExceptionusername or password is null.

Properties​

PropertyTypeDescription
UsernamestringThe username to register.
PasswordstringThe password to register. Never show or log it.
Emailstring?The player's email address, or null.
DisplayNamestring?The name other players see, or null.