Remove Alphanumeric check for the username

This commit is contained in:
Frédéric Guillot
2014-06-24 19:53:34 -03:00
parent b513313c2f
commit 0b1614383e

View File

@@ -198,7 +198,6 @@ class User extends Base
$v = new Validator($values, array( $v = new Validator($values, array(
new Validators\Required('username', t('The username is required')), new Validators\Required('username', t('The username is required')),
new Validators\MaxLength('username', t('The maximum length is %d characters', 50), 50), new Validators\MaxLength('username', t('The maximum length is %d characters', 50), 50),
new Validators\AlphaNumeric('username', t('The username must be alphanumeric')),
new Validators\Unique('username', t('The username must be unique'), $this->db->getConnection(), self::TABLE, 'id'), new Validators\Unique('username', t('The username must be unique'), $this->db->getConnection(), self::TABLE, 'id'),
new Validators\Required('password', t('The password is required')), new Validators\Required('password', t('The password is required')),
new Validators\MinLength('password', t('The minimum length is %d characters', 6), 6), new Validators\MinLength('password', t('The minimum length is %d characters', 6), 6),
@@ -232,7 +231,6 @@ class User extends Base
new Validators\Required('id', t('The user id is required')), new Validators\Required('id', t('The user id is required')),
new Validators\Required('username', t('The username is required')), new Validators\Required('username', t('The username is required')),
new Validators\MaxLength('username', t('The maximum length is %d characters', 50), 50), new Validators\MaxLength('username', t('The maximum length is %d characters', 50), 50),
new Validators\AlphaNumeric('username', t('The username must be alphanumeric')),
new Validators\Unique('username', t('The username must be unique'), $this->db->getConnection(), self::TABLE, 'id'), new Validators\Unique('username', t('The username must be unique'), $this->db->getConnection(), self::TABLE, 'id'),
new Validators\Integer('default_project_id', t('This value must be an integer')), new Validators\Integer('default_project_id', t('This value must be an integer')),
new Validators\Integer('is_admin', t('This value must be an integer')), new Validators\Integer('is_admin', t('This value must be an integer')),
@@ -258,7 +256,6 @@ class User extends Base
new Validators\Required('id', t('The user id is required')), new Validators\Required('id', t('The user id is required')),
new Validators\Required('username', t('The username is required')), new Validators\Required('username', t('The username is required')),
new Validators\MaxLength('username', t('The maximum length is %d characters', 50), 50), new Validators\MaxLength('username', t('The maximum length is %d characters', 50), 50),
new Validators\AlphaNumeric('username', t('The username must be alphanumeric')),
new Validators\Unique('username', t('The username must be unique'), $this->db->getConnection(), self::TABLE, 'id'), new Validators\Unique('username', t('The username must be unique'), $this->db->getConnection(), self::TABLE, 'id'),
new Validators\Required('current_password', t('The current password is required')), new Validators\Required('current_password', t('The current password is required')),
new Validators\Required('password', t('The password is required')), new Validators\Required('password', t('The password is required')),