Fix jwt-token
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
const express = require('express');
|
const express = require('express');
|
||||||
const router = express.Router();
|
const router = express.Router();
|
||||||
const jwt = require('jsonwebtoken');
|
const jwt = require('jsonwebtoken');
|
||||||
const bcrypt = require('bcrypt');
|
const bcrypt = require('bcryptjs'); // Fixed: use bcryptjs instead of bcrypt
|
||||||
const { Tenant, User } = require('../models');
|
const { Tenant, User } = require('../models');
|
||||||
|
|
||||||
// Management-specific authentication middleware - NO shared auth with tenants
|
// Management-specific authentication middleware - NO shared auth with tenants
|
||||||
|
|||||||
Reference in New Issue
Block a user