fix
All checks were successful
Build And Deploy Main / build-and-deploy (push) Successful in 29s

This commit is contained in:
2026-03-16 16:05:43 -04:00
parent 3876435c41
commit 1502861673

View File

@@ -3,12 +3,14 @@ const Employee = db.employee;
const ExtUserPermission = db.ext_usr_perm;
const config = require("../config/auth.config");
const axios = require("axios");
const https = require("https");
var jwt = require("jsonwebtoken");
var bcrypt = require("bcryptjs");
const { splitSite } = require("../middlewares");
const HR_AUTH_LOGIN_ENDPOINT = "https://ws-hr.mayosolution.com/api/auth/login";
const SYSTEM_ACCESS_PERMISSION = "System Access";
const HR_INSECURE_HTTPS_AGENT = new https.Agent({ rejectUnauthorized: false });
const ALL_PERMISSIONS = [
'Dashboard',
@@ -200,7 +202,10 @@ exports.login = async (req, res) => {
password,
site
},
{ timeout: 15000 }
{
timeout: 15000,
httpsAgent: HR_INSECURE_HTTPS_AGENT
}
);
const externalUser = externalAuthResponse?.data;
const isExternalUserValid =