converted verification and query(read) using qr code number
This commit is contained in:
parent
426f0c60c2
commit
df8a9c8436
5 changed files with 16 additions and 16 deletions
|
|
@ -5,7 +5,7 @@ GOOGLE_CLIENT_SECRET="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"
|
|||
GOOGLE_CALLBACK_URL="http://localhost:8080/auth/google/callback"
|
||||
LOGIN_REDIRECT_URL="http://localhost:5173/"
|
||||
ACCEPTED_ORIGINS=http://localhost:3000,http://localhost:8081,http://localhost:3001,http://localhost:5173
|
||||
ASSIGNMENT_SERVICE_URL="http://localhost:8082/"
|
||||
ASSIGNMENT_SERVICE_URL="http://localhost:8082"
|
||||
DB_USER_SERVICE_URL="http://localhost:3100/"
|
||||
AUTH_SESSION_KEY="f3f4d8e6b17a4b3abdc8e9a2c0457aaf91c0d5f6e3b7a9c8df624bd71ea35f42"
|
||||
PORT=8080
|
||||
|
|
@ -22,10 +22,10 @@ passport.use(
|
|||
passport.use(
|
||||
"student-auth",
|
||||
new CustomStrategy(async (req, done) => {
|
||||
const { assignmentId, password } = req.body;
|
||||
const { qrNumber, password } = req.body;
|
||||
|
||||
console.log("Custom strategy invoked");
|
||||
console.log("Received assignmentId:", assignmentId);
|
||||
console.log("Received qrNumber:", qrNumber);
|
||||
console.log("Received password:", password);
|
||||
|
||||
try {
|
||||
|
|
@ -33,7 +33,7 @@ passport.use(
|
|||
const response = await axios.post(
|
||||
`${process.env.ASSIGNMENT_SERVICE_URL}/student/verify`,
|
||||
{
|
||||
assignmentId,
|
||||
qrNumber,
|
||||
password,
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue