minor changes
This commit is contained in:
parent
909b29dfb5
commit
af2e220116
30 changed files with 598 additions and 350 deletions
|
|
@ -36,8 +36,11 @@ passport.use(
|
|||
|
||||
try {
|
||||
console.log("Sending request to external auth service...");
|
||||
console.log(
|
||||
`Request URL: ${process.env.ASSIGNMENT_SERVICE_URL}student/verify`
|
||||
);
|
||||
const response = await axios.post(
|
||||
`${process.env.ASSIGNMENT_SERVICE_URL}/student/verify`,
|
||||
`${process.env.ASSIGNMENT_SERVICE_URL}student/verify`,
|
||||
{
|
||||
qrNumber,
|
||||
password,
|
||||
|
|
@ -64,6 +67,7 @@ passport.use(
|
|||
|
||||
passport.serializeUser((user, done) => {
|
||||
console.log("Serializing user:", user);
|
||||
console.log(process.env.NODE_ENV)
|
||||
// done(null, user);
|
||||
done(null, {
|
||||
userId: user.qrcodenumber || user.userId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue