working demo
This commit is contained in:
parent
b194d2031d
commit
a8de581c09
6 changed files with 216 additions and 27 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue