Skip to content

Commit

Permalink
unable to login issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Hemant77777777 committed Jan 11, 2025
1 parent d015c05 commit 6980cc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions backend/src/controllers/coreControllers/adminAuth/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const createAuthMiddleware = require('@/controllers/middlewaresControllers/createAuthMiddleware');
module.exports = createAuthMiddleware('Admin');


const bcrypt = require('bcryptjs');
const jwt = require('jsonwebtoken');
const mongoose = require('mongoose');
Expand Down Expand Up @@ -75,5 +76,4 @@ const login = async (req, res) => {
}
};

module.exports = login;

module.exports = login,createAuthMiddleware('Admin');
2 changes: 1 addition & 1 deletion backend/src/routes/coreRoutes/coreAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ router.route('/logout').post(adminAuth.isValidAuthToken, catchErrors(adminAuth.l

module.exports = router;

const express = require('express');


0 comments on commit 6980cc5

Please sign in to comment.