Zusammenfassung der Ressource
/service/rest/login/reset/:account
- Check if the account is undefined
- If is undefined, return {
status : 'unsuccessful',
message: 'The account is
undefined' } with error
code 400.
- If is defined checking if
is email or username.
- If is email, try to
find the account
with this email.
- If the account exists, put the
account to reset mode. and
return { status: 'successful',
message: 'You have
successful request a reset to
this account' } with code
200.
- If the account not
exists, return { status :
'unsuccessful',
message: 'This
account not exists' }
with error code 400.
- If is username, try to
find the account with
this username.
- If is not username or email,
return { status : 'unsuccessful',
message: 'The parameter is not
email or username' } with error
code 400.