From 786d79cf612c4b8ee0e9e3b4004b94aa5e42cca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20M=E1=BA=A1nh=20T=C3=B9ng?= <63092029+FPT-NMTung@users.noreply.github.com> Date: Fri, 10 May 2024 18:51:59 +0700 Subject: [PATCH] Update authController.js --- controllers/authController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/authController.js b/controllers/authController.js index 5f5a5d8..6655b13 100644 --- a/controllers/authController.js +++ b/controllers/authController.js @@ -189,7 +189,7 @@ class AuthController { domain: process.env.ENVIRONMENT === 'production' ? '.nmtung.dev' : 'localhost', sameSite: 'lax' }) - .cookie("info", dataUser, { + .cookie("info", data[0].C_USERNAME, { httpOnly: false, secure: true, domain: process.env.ENVIRONMENT === 'production' ? '.nmtung.dev' : 'localhost',