/service/rest/login/reset/:account

Description

I mind map about the reset API.
Nikolaos Grammatikos
Mind Map by Nikolaos Grammatikos, updated more than 1 year ago
Nikolaos Grammatikos
Created by Nikolaos Grammatikos over 7 years ago
36
0

Resource summary

/service/rest/login/reset/:account
  1. Check if the account is undefined
    1. If is undefined, return { status : 'unsuccessful', message: 'The account is undefined' } with error code 400.
      1. If is defined checking if is email or username.
        1. If is email, try to find the account with this email.
          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. If the account not exists, return { status : 'unsuccessful', message: 'This account not exists' } with error code 400.
            2. If is username, try to find the account with this username.
              1. 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
            EDEXCEL IGCSE (9-1) COMPUTER SCIENCE
            CreativeKai 03
            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