描述:
支持手机号+密码登陆和手机号加+短信验证码登陆
没有注册的用户,可以直接通过手机号+验证码进行登陆,自动会注册账号
接口文档:
手机号+密码登陆:https://discuz.com/api-docs/v1/Login.html
请求示例:
{
“data”: {
“attributes”: {
“username”: “13635237420”,
“password”: “123456”
}
}
}
用我的手机号 13635237420 密码 123456 进行测试
发送验证码:https://discuz.com/api-docs/v1/sms-send.html
请求示例:
{
“data”: {
“attributes”: {
“mobile”: “186*5678”,
“type”: “login”
}
}
}
短信验证:https://discuz.com/api-docs/v1/sms-verify.html
请求示例:
{
“data”: {
“attributes”: {
“mobile”: “13635420”,
“code”: “386865”,
“type”: “login”,
“register”: 1
}
}
}
示意图:
**