Login Process

The login system supports multiple login methods, including personal and business logins, email/phone number logins, password/verification code logins, and third-party login services. Additionally, it

Features

  • Personal/Business Login: Supports login needs for both personal and business users.

  • Email/Phone Number Login: Users can choose to log in using either email or phone number.

  • Password/Verification Code Login: Provides both password login and verification code login methods.

  • Third-Party Login: Supports third-party logins from Google, Facebook, Twitter, Telegram, Apple, and MetaMask.

  • Google MFA Authentication: Enhances account security by supporting Google MFA authentication.

Relevant Interfaces

  • Login Interface

    • Endpoint: /login/customer.app.CustomerWebApiService.login

    • Function: Handles user login requests.

    • Note: The login password must be transmitted in MD5 encrypted format; plain text transmission is prohibited.

  • Country/Region Query Interface

    • Endpoint: /global/config.app.AppDictDubboService.getCountryListByParentCode

    • Function: Queries the country and region list based on country codes.

  • Supported Countries for Business Account Opening

    • Endpoint: /global/customer.app.KycWebApiService.findCompanyCountry

    • Function: Retrieves the list of countries that support business account openings.

  • Customer Information Verification Interface

    • Endpoint: /global/customer.app.CustomerWebApiService.checkStatus

    • Function: Checks whether customer information is valid.

  • Send Verification Code Interface

    • Endpoint: /global/message.app.VerificationApiService.verifyCodeSend

    • Function: Sends a verification code to the user.

  • Check Google MFA Status Interface

    • Endpoint: /global/customer.app.CustomerWebApiService.checkGoogleMFAStatus

    • Function: Checks if the customer has enabled Google MFA.

Interface Usage Instructions

Before calling the interfaces, please ensure you have carefully read the relevant interface documentation. Below are specific instructions for different login methods:

1. Password Login

Email Login

  1. Login

    • Use the login interface, passing in loginName, loginPwd, and type parameters.

    • Note: The login password must be MD5 encrypted before transmission; plain text transmission is prohibited.

Phone Number Login

  1. Get Country Code Data

    • Call the country/region query interface to obtain the country code data.

  2. Login

    • Use the login interface, passing in loginName, loginPwd, type, and phoneArea parameters. Refer to the interface documentation for specific parameter descriptions.

2. Verification Code Login

  1. Verify Customer Information

    • Use the customer information verification interface to ensure the account exists.

  2. Send Verification Code

    • Call the send verification code interface to obtain a ticket for successful code sending (sendToken).

  3. Complete Login

    • Use the login interface, passing in loginName, type, phoneArea, sendToken, and verifyCode parameters. Refer to the interface documentation for specific parameter descriptions.

  • Note:

    • Account Verification: The account must be verified before sending the verification code.

    • Verification Code Ticket: The sendToken parameter is the ticket returned after successfully sending the verification code, used to verify the validity of the code.

3. Google MFA Authentication

  1. Check if the User Has Enabled Google MFA

    • Use the check Google MFA status interface, which will return an integer indicating the user's Google MFA status; a value greater than 0 means enabled, otherwise it means disabled.

  2. Login Interface (with Google MFA support)

    • Use the login interface, passing in loginName, type, phoneArea, and googleCode parameters. Refer to the interface documentation for specific parameter descriptions.

  • Note: googleCode is the 6-digit code obtained from Google Authenticator, used for MFA verification.

Frequently Asked Questions

What is the validity period of the token returned after a successful login?

  • Token Validity: The token returned after a successful login is valid for 2 hours.

  • Automatic Renewal: If a request is received within the 2-hour validity period, the token will be automatically renewed for another 2 hours.

Last updated