/service/rest/login/reset/:account

Nikolaos Grammatikos
Mind Map by Nikolaos Grammatikos, updated more than 1 year ago
Nikolaos Grammatikos
Created by Nikolaos Grammatikos over 3 years ago
2
0

Description

I mind map about the reset API.
Tags

Resource summary

/service/rest/login/reset/:account
1 Check if the account is undefined
1.1 If is undefined, return { status : 'unsuccessful', message: 'The account is undefined' } with error code 400.
1.2 If is defined checking if is email or username.
1.2.1 If is email, try to find the account with this email.
1.2.1.1 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.
1.2.1.2 If the account not exists, return { status : 'unsuccessful', message: 'This account not exists' } with error code 400.
1.2.2 If is username, try to find the account with this username.
1.2.3 If is not username or email, return { status : 'unsuccessful', message: 'The parameter is not email or username' } with error code 400.
Show full summary Hide full summary

Similar

Code Challenge Flow Chart
Charlotte Hilton
Flvs foundations of programming dba 2
mariaha vassar
Core Spring 4.2 Certification Mock Exam
antoine.rey
psycholgoy as level topic 2 - memory
Talya Hambling
Chapter 10: Medical coding
Kelly Martin
Basic Python - Strings
Rebecca Noel
Online course: Administration Essentials for the Service Cloud
Saulo Oliveira
RESTful Web Services with Express Framework and mongoose.
Angel Martínez Rodriguez
Our Story
Natalia R
Coding Test!
vapetrop