Password Reset Send Mail

입력한 이메일로 비밀번호 재설정 링크가 담긴 이메일을 전송합니다.

비밀번호 재설정 링크 예시

ex) http://{{domain}}/settings/reset_password?code={{code}}&uid={{uid}}

http://localhost:8000/settings/reset_password?code=eyJ0b2tlbiI6ImZiYzBlNWU1OGNmYzIyNGJlMTVlZGI1MGRkNzYzMDk2YjVjZWRhZjQifQ:1ePo2a:Fn7lkoWrMHNHEQDcJ8twM-Vb4EI&uid=eyJwayI6NH0:1ePo2a:_emMnskqfKDvRVRT_9kuSsaw52w

URL

/user/password-reset/send-mail/

Method

POST

Data Params

Key Description Type Require
email 이메일 {@}, {.} 으로 유효성 판단. ex) [email protected] String True

Success Response

HTTP Status Code

200

Content

{
    "message": "비밀번호 재설정 링크가 담긴 이메일을 [email protected]로 전송하였습니다.",
    # 이메일 수신자
    "email": "[email protected]"
}

Error Response

Bad Request Error

HTTP Status Code

400

Content

# 필수 항목 누락

{
    "email": [
        "이 필드는 필수 항목입니다."
    ]
}

Bad Request Error

HTTP Status Code

400

Content

# 이메일 양식이 잘못 경우

{
    "email": [
        "유효한 이메일 주소를 입력하십시오."
    ]
}

Bad Request Error

HTTP Status Code

400

Content

# 이메일 계정이 존재하지 않는 경우
{
    "email": [
        "해당 이메일로 가입된 계정이 존재하지 않습니다"
    ]
}

results matching ""

    No results matching ""