Skip to content

Commit

Permalink
Update authController.js
Browse files Browse the repository at this point in the history
  • Loading branch information
FPT-NMTung authored May 10, 2024
1 parent 79db6bb commit 786d79c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/authController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 786d79c

Please sign in to comment.