-
Notifications
You must be signed in to change notification settings - Fork 0
[POST] 현재 비밀번호 일치여부
Kayoung Yoon edited this page Jan 14, 2021
·
3 revisions
메소드 | 경로 | 짧은 설명 |
---|---|---|
POST | /users/password | 입력한 비밀번호가 사용자의 원래 비밀번호와 일치하는지 확인합니다. |
- 확인 버튼을 눌렀을 때 통신
Content-Type: application/json
key | 설명 | 타입 | 비고 |
---|---|---|---|
jwt | 사용자 인증 토큰 | String | not Null |
key | 설명 | 타입 | 비고 |
---|---|---|---|
password | 입력한 비밀번호 | String |
- 비밀번호가 일치할 경우
{
"status": 200,
"success": true,
"message": "비밀번호가 일치합니다.",
"data": {
"isCorrect": true
}
}
- 비밀번호가 일치하지 않을 경우
{
"status": 200,
"success": true,
"message": "비밀번호가 일치하지 않습니다",
"data": {
"isCorrect": false
}
}
- 입력값에 NULL VALUE
{
"status": 400,
"success": false,
"message": "필요한 값이 없습니다."
}
- 서버 내부 에러
{
"status": 500,
"success": false,
"message": "서버 내부 에러"
}