]> andersk Git - sql-web.git/blobdiff - lib/security.lib.php
signup: lower minimum UIDs
[sql-web.git] / lib / security.lib.php
index bb32be66c55a1d1ed3bda5186532a296699ae589..98fdd51bb855ebea983fd7c42ca1320753f3d630 100644 (file)
@@ -12,7 +12,7 @@ class Login {
                if (empty($u)) return;
                $this->u = $u;
                $this->p = $p;
-               if (is_numeric($u)) {
+               if ((string)intval($u)===(string)$u) {
                        $this->id = $u;
                        $opt = sprintf(" Username = '%s' OR UserId = '%s'", mysql_escape_string($u), mysql_escape_string($u));
                } else {
This page took 0.033226 seconds and 4 git commands to generate.