Skip to content
Snippets Groups Projects
Commit 83f21ec5 authored by Imran Hussain's avatar Imran Hussain
Browse files

[1/?] Allow student IDs > 6 digits

parent 23899139
No related branches found
No related tags found
2 merge requests!104Beta to live,!103Allow student IDs > 6 digits to beta
Pipeline #526 passed
......@@ -125,7 +125,7 @@ function validSID($SID, $override)
return true;
}
} else {
if (!preg_match("/^[0-9]*$/", $SID) || strlen($SID) != 6) {
if (!preg_match("/^[0-9]{6,}$/", $SID)) {
$error = "Invalid student ID";
return false;
} elseif (sidUsed($SID)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment