RegistrationCodeUserData

public struct RegistrationCodeUserData : Content

Returns the registration code associated with a user. Not all users have registration codes; e.g. asking for the reg code for ‘admin’ will return an error.

  • Declaration

    Swift

    var users: [UserHeader]
  • The registration code associated with this account. If this account doesn’t have an associated regcode, will be the empty string.

    Declaration

    Swift

    var regCode: String
  • TRUE if this reg code was created to get allocated to a user on Discord for the purpose of creating an account on the pre-prod server.

    Declaration

    Swift

    var isForDiscordUser: Bool
  • If this reg code has been allocated to a Discord user, the name of the user. Nil if not a Discord regcode or if not yet allocated.

    Declaration

    Swift

    var discordUsername: String?
  • TRUE if this account already used its registration code for password recovery (stored as a ‘*’ prefix on User.verification; see AuthController.recoveryHandler).

    Declaration

    Swift

    var hasUsedRegCodeForPasswordRecovery: Bool
  • Account creation time of the primary user. Nil if the code has not been used to create an account.

    Declaration

    Swift

    var accountCreatedAt: Date?