alexf4 / PrepIt

0 stars 0 forks source link

Site crash when teacher access a students account #183

Closed Cody-Soultz closed 8 years ago

Cody-Soultz commented 8 years ago

I used teacher-cody-soultz@uiowa.edu when I clicked on the student cody-soultz@uiowa.edu the server crashed. From both the dashboard and student list.

both accounts have a password of: cody

Here is the stack trace

GET /teacherDrilldown/student/cody-soultz@uiowa.edu 302 107.649 ms - 78 deserializing user: /home/Cody/git/PrepIt/routes/teacher.js:121 userEmail: userEmail ^

ReferenceError: userEmail is not defined at /home/Cody/git/PrepIt/routes/teacher.js:121:32 at /home/Cody/git/PrepIt/DBWork/studentFunctions.js:376:17 at /home/Cody/git/PrepIt/node_modules/async/lib/async.js:52:16 at done (/home/Cody/git/PrepIt/node_modules/async/lib/async.js:248:21) at /home/Cody/git/PrepIt/node_modules/async/lib/async.js:44:16 at /home/Cody/git/PrepIt/DBWork/studentFunctions.js:364:21 at /home/Cody/git/PrepIt/DBWork/studentFunctions.js:270:9 at Query. (/home/Cody/git/PrepIt/DBWork/questionFunctions.js:17:9) at /home/Cody/git/PrepIt/node_modules/mongoose/node_modules/kareem/index.js:177:19 at /home/Cody/git/PrepIt/node_modules/mongoose/node_modules/kareem/index.js:109:16 at _combinedTickCallback (node.js:370:9) at process._tickCallback (node.js:401:11)

Process finished with exit code 1