๐Ÿ”‘ACCOUNT MANAGER

The Account Manager is a core module of 17mov_Phone that handles cross-app user registration, profile data validation, and credential management. It provides a centralized way to create accounts for various integrated social and utility apps.

Account Data

To create an account via exports, in addition to standard credentials like username and password, you must provide a dedicated accountData table.

circle-exclamation

Below are the classes required for the accountData parameter based on the application you are registering for.

chevron-rightSwiplyDatahashtag
--- @class SwiplyData
--- @field firstname string Display Name
--- @field lastname string Display Last Name
--- @field aboutme string Profile description
--- @field dateofbirth number Unix Timestamp (seconds or ms)
--- @field gender     0|1|2 = 0: Male, 1: Female, 2: Other
--- @field preference 0|1|2 = 0: Male, 1: Female, 2: Other
--- @field lookingfor 0|1|2 = 0: None, 1: FWB, 2: Relationship
--- @field intrests number[] Array of interest IDs (min 3, max 15)
--- @field photos string[] Array of image URLs (min 2, max 6)
--- @field location {x: number, y: number} Coordinates
chevron-rightQwuakerDatahashtag
--- @class QwuakerData
--- @field avatar string URL link to profile picture
--- @field background string URL link to profile background
--- @field name string Display Name
--- @field gender string Display Gender
--- @field verifiedLevel 0|1|2|3 Account verification level (range 0-3)
chevron-rightPeargramDatahashtag
--- @class PeargramData
--- @field avatar string URL link to profile picture
--- @field name string Display Name
chevron-rightDarkChatDatahashtag
--- @class DarkChatData
--- @field name string Display Name
--- @field avatar string URL link to avatar image
chevron-rightEbuyDatahashtag
chevron-rightMailDatahashtag

RegisterAccountBySrc

Creates a new user account for a specific application using the player's Server ID.

Returns:

  • table: Returns the account object on success, or object if validation fails with the error code.

Argument
Type
Optional
Explanation

src

number

โŒ

The server ID of the player.

username

string

โŒ

The desired login/username

password

string

โŒ

The account password.

appName

string

โŒ

Name of the app (Full list available in Config.AppDefinitions)

accountData

table

โŒ

The specific Data Object for the app (see above)

RegisterAccountByNumber

Creates a new user account using the player's Phone Number. Useful for offline registrations or number based logic

Returns:

  • table: Returns the account object on success, or object if validation fails with the error code.

Argument
Type
Optional
Explanation

number

number

โŒ

The target player's phone number

username

string

โŒ

The desired login/username

password

string

โŒ

The account password.

appName

string

โŒ

Name of the app (Full list available in Config.AppDefinitions)

accountData

table

โŒ

The specific Data Object for the app (see above)

Last updated