Skip to content

Forgot Mail and Mail API

siddharthakonakanchi edited this page Dec 5, 2017 · 4 revisions

Index

  1. Description
  2. API Calls
  3. Data Base Details
  4. User Manual
  5. Packages Used

Description

This page enables the user to reset the password

API

This API call will enable the user to reset the password. Upon entering valid registered email id the API will call the mailing logic to end a mail to the user for password reset

The mail is generated from noreplygatormeetup@gmail.com email id to the user . Upon clicking the URL in the mail the API calls reset/:token API

Endpoint

/users/signup

Method
GET  
Fields
Key Description Type Required
email Email Id of user String Yes
password User's password String Yes
Response

Status codes: 200,400,501
Example:
code: 200 OK

Tables

Table Name: users

Table structure

Key Description Type Required
name Password Encryped Password Yes
email Email ID of the user String Yes

Manual

  1. Input a valid registerd Email Id .
  2. Click on Forgot Password Link Button
  3. Go to the Email
  4. Click on the URL
  5. Enter new Password
  6. Re Login in the website.

Packages Used

Nodemailer is a module for Node.js applications to allow easy as cake email sending.

The API provides following feautures

•A single module with zero dependencies – code is easily auditable, as there are no dark corners •Heavy focus on security, no-one likes RCE vulnerabilities •Unicode support to use any characters, including emoji 💪 •Windows support – you can install it with npm on Windows just like any other module, there are no compiled dependencies. Use it hassle free from Azure or from your Windows box •Use HTML content, as well as plain text alternative •Add Attachments to messages

Installation

npm install nodemailer --save

Encryption : In order to store password in database and to provide security we are using encryption and decryption algorithms so passwords remain hidden More information can be obtained from https://nodemailer.com/about/

Note Here the Nodemailer is being configured with Gmail . The subject line, body, content and attachments are also sent .

Clone this wiki locally