Commit 83f21ec5 authored by Imran Hussain's avatar Imran Hussain

[1/?] Allow student IDs > 6 digits

parent 23899139
Pipeline #526 passed with stage
in 3 minutes and 16 seconds
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment