/service/rest/login/reset/:account

Descrição

I mind map about the reset API.
Nikolaos Grammatikos
Mapa Mental por Nikolaos Grammatikos, atualizado more than 1 year ago
Nikolaos Grammatikos
Criado por Nikolaos Grammatikos mais de 7 anos atrás
37
0

Resumo de Recurso

/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.

            Semelhante

            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