Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/harish-govindasamy/forget-password-server

Password Reset Flow in Backend
https://github.com/harish-govindasamy/forget-password-server

api crud database dotenv express jsonwebtoken mongodb mongoose nodejs nodemailer validation

Last synced: 10 days ago
JSON representation

Password Reset Flow in Backend

Awesome Lists containing this project

README

        

# Forgot Password BackEnd

## Working

- Login check the user data and allow the login
- SignUp check the existing database and update the new user
- Forgot Password creates a temporary token and send a mail to the user to update the password

**Base URL**

URL - https://forget-password-server.onrender.com/

### POST

**signup**
`https://forget-password-server.onrender.com/signup/newuser`
Get the user data and store it in the dataBase
Automatically send a email to the user for Authentication

**_Request Format_**

{
"email": "[email protected]",
"password": "example"
}

### POST

**login**
`https://forget-password-server.onrender.com/login/user`
Get the user data and check the user details in the database

**_Request Format_**

{
"email": "[email protected]",
"password": "example"
}

### POST

**forgot passoword**
`https://forget-password-server.onrender.com/forgot`
Get the user email and check the user details in the database and send a Password Reset link to the User email

**_Request Format_**

{
"email": "[email protected]"
}

### GET

**verify reset page**
`https://forget-password-server.onrender.com/reset/:id/:token`
When the User click the password reset email it will check the data and allow the user to update the new password

### PATCH

**update new password**
`https://forget-password-server.onrender.com/forgot`

**_Request Format_**

{
"newPassword": "123",
"confirmPassword": "123"
}

## API Documentation

- [API](https://documenter.getpostman.com/view/31335509/2s9YkkgPSB)

## Front End Live Site

- [Live Site](https://password-reset-flow-1999.netlify.app/)

## Live Site

- [Live Site](https://forget-password-server.onrender.com/)