OkayAPI Docs


API Path: /api/App/User/ResetPasswordWithEmailCode

API Description: 通过App.User.SendResetPasswordEmailCode会员邮箱找回密码接口发送邮件后,把接收到的动态验证码和新密码传递过来,验证后即可重置会员密码。特别注意,为避免被暴力破解,验证码每核对失败一次,有效时间将减少10分钟。

1
API Traffic
HTTP/HTTPS
Protocol
GET/POST
Method
UTF-8
Charset
JSON
Response

API Debug   


API Params

ParameterTypeRequiredDefaultNoteDescription
HTTP_APPKEYStringRequiredMIN: 32Common Put Your APPKEY
usernameStringRequiredMIN: 1需要找回密码的应用会员账号
codeStringRequired邮件里的动态验证码
new_passwordStringRequiredMIN: 32;MAX: 32新密码,须md5后传递,保持全部小写

API Debug

KEYREQUIREDVALUE
app_key *Required
username *Required
code *Required
new_password *Required

API Response

KEYTypeDescription
err_codeInt操作状态码,0重置成功,1邮件动态验证码已过期,2验证码不正确,3密码修改失败
err_msgString错误提示信息,err_code非0时参考此提示信息

HTTP Response Code

HTTP Status CodeDescription
Http Status = 200Success
Http Status = 400Illegal-Params
Http Status = 401Illegal-Token
Http Status = 402IP-Banned
Http Status = 404API-NOT-Exsits
Http Status = 406Illegal-APPKEY
Http Status = 407APPKEY-Expired-Out
Http Status = 408APPKEY-Busy
Http Status = 409Illegal-Sign
Http Status = 413API-Traffic-NOT-Enough
Http Status = 415API-LOCKED
Http Status = 500Internal-Server-Error

如何修改密码??