Skip to content

Instantly share code, notes, and snippets.

@prasadtalasila
Created April 20, 2017 20:41
Show Gist options
  • Save prasadtalasila/a25f3c97e4bb8830cc065e55ea7d1060 to your computer and use it in GitHub Desktop.
Save prasadtalasila/a25f3c97e4bb8830cc065e55ea7d1060 to your computer and use it in GitHub Desktop.
autolab-code-tips
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;
}
@prasadtalasila
Copy link
Author

commenting out the id_number length is confirmed to be working. It was tested on the Azure installation for WILP DSA course installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment