Skip to content

Commit

Permalink
Merge pull request #4 from Norseolee/updates/v2.3
Browse files Browse the repository at this point in the history
uninstall bcryt and install bcryptjs
  • Loading branch information
Norseolee authored Jun 8, 2024
2 parents 8c0ba82 + 9eb24ca commit dda7027
Show file tree
Hide file tree
Showing 208 changed files with 4,055 additions and 38,328 deletions.
2 changes: 1 addition & 1 deletion config/Routes/mainRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Role = require('../Models/roleModel');
const checkAuth = require('../Middleware/audthMiddleware'); // Fixed typo
const { generateToken } = require('../generateToken');
const { verifyToken } = require('../verifyToken');
const bcrypt = require('bcrypt');
const bcrypt = require('bcryptjs');
const multer = require('multer');

// THIS IS COMMON ROUTES
Expand Down
2 changes: 1 addition & 1 deletion config/Routes/userRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const express = require('express');
const router = express.Router();
const User = require('../Models/userModel');
const bcrypt = require('bcrypt');
const bcrypt = require('bcryptjs');
const { verifyToken } = require('../verifyToken');

// Route handler for add new user
Expand Down
2 changes: 1 addition & 1 deletion migrations/20240513195624_users_migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @returns { Promise<void> }
*/

const bcrypt = require('bcrypt');
const bcrypt = require('bcryptjs');

exports.up = function(knex) {
// Hash the password asynchronously
Expand Down
16 changes: 0 additions & 16 deletions node_modules/.bin/node-pre-gyp

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/node-pre-gyp.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/node-pre-gyp.ps1

This file was deleted.

Loading

0 comments on commit dda7027

Please sign in to comment.