Browse Source

case insensitive login & email

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@58 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
master
pzinovkin 16 years ago
parent
commit
e1307a1e8b
  1. 4
      classes/User.class.php

4
classes/User.class.php

@ -20,11 +20,11 @@ class User
return false;
}
if(!preg_match("/^[a-z0-9_-]{3,50}$/i", $login)) {
if(!preg_match(UserData::REGEXP_LOGIN, $login)) {
return false;
}
self::setInfo(self::getByLogin(strtolower($login)));
self::setInfo(self::getByLogin($login));
if (!self::getInfo() || self::$user->isBanned()) {
return false;
}

Loading…
Cancel
Save