Xsolla-logo

将用户名/邮箱认证添加到帐户

post/users/me/link_email_password

将用户名/邮箱和密码认证添加到现有用户帐户。如果帐户是通过设备ID或手机号码创建的,则使用此调用。

SecurityBearer
Request
query Parameters
login_url
string

URL to redirect the user to after account confirmation, successful authentication, two-factor authentication configuration, or password reset confirmation. Must be identical to the Callback URL specified in the URL block of Publisher Account. To find it, go to Login > your Login project and select the Callback URLs section in the upper block of the navigation page. Required if there are several Callback URLs.

Request Body schema: application/json
username
required
string [ 1 .. 255 ] characters

用户名。

password
required
string [ 6 .. 100 ] characters

用户密码。

email
required
string <email> [ 1 .. 255 ] characters

用户邮箱地址。

promo_email_agreement
integer >= 0
Default: 1

用户同意接收电子简讯。

Enum: 0 1
Responses
200

确定

400

错误的请求

401

未授权

422

无法处理的实体

429

请求过多

Request samples
application/json
{
  • "email": "john-email@email.com",
  • "password": "password123",
  • "username": "John"
}
Response samples
application/json
{
  • "email_confirmation_required": true
}