Skip to content

Commit 414d414

Browse files
author
YvetteNyibuka
committed
feat(Reset-password):User who forgot password can reset it via email
- User who forgot password can request resetting it - Sending reset-password email containing link along with token to reset password - Reset password using the provided token - Token is used only once [Delivers #187419058]
1 parent 323448c commit 414d414

File tree

14 files changed

+502
-47
lines changed

14 files changed

+502
-47
lines changed

.env-example

+5-11
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,9 @@ GOOGLE_SECRET_ID=
1414
GOOGLE_CALLBACK_URL=
1515
SESSION_SECRET=
1616

17-
1817
JWT_SECRET=
19-
20-
21-
BASE_URL = < your BASE_URL>
22-
HOST = < your Host >
23-
SERVICE = < your SERVICE >
24-
25-
26-
EMAIL=<your email>
27-
PASSWORD=<email password>
28-
18+
SENDER_NAME=
19+
EMAIL=
20+
PASSWORD=
21+
ACCESS_TOKEN_SECRET=
22+
SENDGRID_API_KEY=<YOUR_GRID_API_KEY>

.github/workflows/node.js.yml

+8
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ jobs:
2828
JWT_SECRET: ${{ secrets.JWT_SECRET }}
2929
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
3030
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
31+
SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }}
32+
SENDER_NAME: ${{ secrets.SENDER_NAME }}
33+
GOOGLE_CALLBACK_URL: ${{ secrets.GOOGLE_CALLBACK_URL }}
34+
GOOGLE_SECRET_ID: ${{ secrets.GOOGLE_SECRET_ID }}
35+
DB_PROD_URL: ${{ secrets.DB_PROD_URL }}
36+
DB_DEV_URL: ${{ secrets.DB_DEV_URL }}
37+
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
38+
PORT: ${{ secrets.PORT }}
3139

3240
strategy:
3341
matrix:

package-lock.json

+85-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"license": "ISC",
2626
"dependencies": {
2727
"@types/jsonwebtoken": "^9.0.6",
28+
"@sendgrid/mail": "^8.1.3",
2829
"@types/nodemailer": "^6.4.14",
2930
"bcrypt": "^5.1.1",
3031
"dotenv": "^16.4.5",
@@ -54,7 +55,8 @@
5455
"lcov"
5556
],
5657
"coveragePathIgnorePatterns": [
57-
"/src/database/config/db.config.ts"
58+
"/src/database/config/db.config.ts",
59+
"/src/utils/token.validation.ts"
5860
]
5961
},
6062
"devDependencies": {

0 commit comments

Comments
 (0)