diff --git a/CHANGELOG.md b/CHANGELOG.md index f916442..519b1e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,14 +2,13 @@ ## 1.0.0 (2023-10-17) - ### Features -* add auth routes and their controllers: login & register ([ebcc2d2](https://github.com/Silent-Watcher/jwt-node/commit/ebcc2d21535ebdac2484e8cd0911f5ae62084786)) -* add controller and define root path with its controller ([aa0b590](https://github.com/Silent-Watcher/jwt-node/commit/aa0b590178590a783a070bee935251591287f20d)) -* add error handler middlewares ([0b8c024](https://github.com/Silent-Watcher/jwt-node/commit/0b8c02413f7ca4a3fdefe3c0fb573776ea54a215)) -* add husky and commitizen ([a703981](https://github.com/Silent-Watcher/jwt-node/commit/a703981e915920ebb523d9ceb26554e0f209bb67)) -* add mongoose and setup the mongoose config file ([4b3faf3](https://github.com/Silent-Watcher/jwt-node/commit/4b3faf3b6e3c0cb837075db48f75288b40ab398d)) -* add prettier and .gitattribute file ([d18af62](https://github.com/Silent-Watcher/jwt-node/commit/d18af62b8913b29ca08cb5f1b73a9290932ee046)) -* add register feature ([85656ce](https://github.com/Silent-Watcher/jwt-node/commit/85656ced9fe6148a6650dc914d7c92059e7d2f76)) -* create & define user model ([781af5f](https://github.com/Silent-Watcher/jwt-node/commit/781af5f3480c46ae97b47277283fd9165b3ac96c)) +- add auth routes and their controllers: login & register ([ebcc2d2](https://github.com/Silent-Watcher/jwt-node/commit/ebcc2d21535ebdac2484e8cd0911f5ae62084786)) +- add controller and define root path with its controller ([aa0b590](https://github.com/Silent-Watcher/jwt-node/commit/aa0b590178590a783a070bee935251591287f20d)) +- add error handler middlewares ([0b8c024](https://github.com/Silent-Watcher/jwt-node/commit/0b8c02413f7ca4a3fdefe3c0fb573776ea54a215)) +- add husky and commitizen ([a703981](https://github.com/Silent-Watcher/jwt-node/commit/a703981e915920ebb523d9ceb26554e0f209bb67)) +- add mongoose and setup the mongoose config file ([4b3faf3](https://github.com/Silent-Watcher/jwt-node/commit/4b3faf3b6e3c0cb837075db48f75288b40ab398d)) +- add prettier and .gitattribute file ([d18af62](https://github.com/Silent-Watcher/jwt-node/commit/d18af62b8913b29ca08cb5f1b73a9290932ee046)) +- add register feature ([85656ce](https://github.com/Silent-Watcher/jwt-node/commit/85656ced9fe6148a6650dc914d7c92059e7d2f76)) +- create & define user model ([781af5f](https://github.com/Silent-Watcher/jwt-node/commit/781af5f3480c46ae97b47277283fd9165b3ac96c)) diff --git a/README.md b/README.md index 930c39c..f187a04 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # jwt-node + a express js authentication system using JWT token diff --git a/controllers/auth/register.controller.js b/controllers/auth/register.controller.js index 9091c5d..abbefa9 100644 --- a/controllers/auth/register.controller.js +++ b/controllers/auth/register.controller.js @@ -1,7 +1,7 @@ 'use strict'; const userModel = require('../../models/user.model'); -const {hashPassword} = require('../../utils/auth.utils'); +const { hashPassword } = require('../../utils/auth.utils'); const registerController = async (req, res, next) => { try {