Created
April 20, 2017 20:41
-
-
Save prasadtalasila/a25f3c97e4bb8830cc065e55ea7d1060 to your computer and use it in GitHub Desktop.
autolab-code-tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To remove restriction on the length of usernames, remove / comment out the lines 311 - 314 of main_server.js. The lines are shown below. | |
if(id_number.length!=12) | |
{ | |
flag=0; | |
} | |
pending submission block is happening on lines 277-282 of main_server.js | |
if((admin_key==null || APIKeys.indexOf(admin_key)==-1 ) && submission_pending.indexOf(id_number)!=-1) // Check if there is a pending submission | |
{ | |
console.log("Pending Submission request" + ' ' + admin_key) // with the same Non-Admin ID number | |
io.to(socket.id).emit('submission_pending',{}); | |
return false; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
commenting out the id_number length is confirmed to be working. It was tested on the Azure installation for WILP DSA course installation.