working demo

This commit is contained in:
Siwat Sirichai 2024-05-05 18:44:40 +07:00
parent b194d2031d
commit a8de581c09
6 changed files with 216 additions and 27 deletions

View file

@ -45,7 +45,7 @@ passport.use(
// If the user is a parent, query the parent's students
// and store the students' UPNs in the session
else if (user_type === directory.USER_TYPE.PARENT) {
let students = await directory.listStudents(username);
let students = await directory.getStudentsByParent(username);
profile["students"] = students;
} else {
console.log("Unknown user type");