Login.js packages reduced and optimized
This commit is contained in:
@@ -1,10 +1,5 @@
|
|||||||
const express = require("express");
|
const express = require("express");
|
||||||
const db = require("../../database/db"); // Import the db modulei
|
const db = require("../../database/db"); // Import the db modulei
|
||||||
const handlebars = require("express-handlebars");
|
|
||||||
const Handlebars = require("handlebars");
|
|
||||||
const path = require("path");
|
|
||||||
const bodyParser = require("body-parser");
|
|
||||||
const session = require("express-session"); // To set the session object. To store or access session data, use the `req.session`, which is (generally) serialized as JSON by the store.
|
|
||||||
const bcrypt = require("bcryptjs"); // To hash passwords
|
const bcrypt = require("bcryptjs"); // To hash passwords
|
||||||
const router = express.Router();
|
const router = express.Router();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user