URL : axios.post('https://domain.com/auth/forgetpass/', body)
BODY
{
"email" : "admin@gmail.com"
}
{
"email" : "admin@gmail.com"
}
{
code : 200,
message: 'Verification code sent successfully',
}
Don't forget to make another status code response
{
kode: '12345'
}
{
code: 200,
message: 'Verification successful'
}
{
"newPassword" : "123321",
"repeatPassword" : "123321"
}
{
"code": 200,
"id": "USRL6HvSBCn9VZ",
"password": "$2b$10$k/yxVj9Y0XlzNPio8pxH/OwffBeKi406cFW8npKsPrn6LYhhMPtwW"
}
ATTENTION
Checking NEW PASSWORD and PASSWORD CONFIRM working on Front End App
{
"message": "Password does not match"
}