X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Futils%2Fvalidation.js;h=530713aa8a02e298c3b6e775269bd4c9c1985adf;hb=b3540dbb5c169db3c7cf49a04e253ab3a6940916;hp=560bd5cf596b606f3c7b549be062f4afcfcf4486;hpb=e99c53fb3be56eb4c685dd061eef0e5b5bf22b73;p=qomet.git diff --git a/public/javascripts/utils/validation.js b/public/javascripts/utils/validation.js index 560bd5c..530713a 100644 --- a/public/javascripts/utils/validation.js +++ b/public/javascripts/utils/validation.js @@ -26,6 +26,9 @@ Validator.Paper = { "inputs": Validator.Input, "startTime": "positiveInteger", "endTime": "positiveInteger", + "discoTime": "positiveInteger", + "discoCount": "positiveInteger", + "totalDisco": "positiveInteger", "password": "password", }; @@ -48,7 +51,6 @@ Validator.Assessment = { Validator.User = { "_id": "bson", "email": "email", - "forename": "name", "name": "name", "initials": "unchecked", //not a user input "loginToken": "unchecked", @@ -58,7 +60,6 @@ Validator.User = { Validator.Student = { "number": "code", - "forename": "name", "name": "name", "group": "positiveInteger", };