diff --git a/application/config/aauth.php b/application/config/aauth.php index f4b33c8..6f6ec8f 100644 --- a/application/config/aauth.php +++ b/application/config/aauth.php @@ -43,6 +43,9 @@ $config['aauth'] = array( // pasword maximum char long (min is 4) 'max' => 13, + // non alphanumeric characters that are allowed in a name + 'valid_chars' => array(' ', '\''), + // it limits login attempts 'dos_protection' => true, diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index 2721384..0452174 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -308,7 +308,7 @@ class Aauth { $this->error($this->config_vars['pass_invalid']); $valid = false; } - if ($name !='' and !ctype_alnum($name)){ + if ($name !='' and !ctype_alnum(str_replace($this->config_vars['valid_chars'], '', $name))){ $this->error($this->config_vars['name_invalid']); $valid = false; } @@ -1095,4 +1095,4 @@ class Aauth { * tamam ama engelleme ve limit olayı koymadım. // pm için okundu ve göster, sil, engelle? die fonksiyonlar eklencek , gönderilen pmler, alınan pmler, arasındaki pmler, * tamm// already existedleri info yap onlar error değil hacım * - */ \ No newline at end of file + */