Verify Security Question Answer

555

# Verify Security Question Answer

Path:

/api/verify_answer

Method: POST

Content-type: application/json; charset=utf-8

API Description: This can be used to verify the answers to security questions and returns a reset password token.

Note: This feature is supported in version 1.70.2 and later.

Request

Name Type Example Description
question string "What is your name?" Question
answer string "Lucy" Answer to the question

Response

Name Type Example Description
code int 0 Error code
msg string "success" Error description
token string "f81499c65de845d6
4daf4b6047ed06ec"
Random 32-digit string, expires in 30 minutes
Used for resetting password with the api/reset_pwd interface

Request Example

{
    "question": "What is your name?",
    "answer": "Lucy"
}

Response Example

{
	"code": 0,
	"msg": "success",
	"token": "f81499c65de845d64daf4b6047ed06ec"
}