CodeIgniter Forums
[FreakAuth Light] Username validation bugs - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forum-22.html)
+--- Thread: [FreakAuth Light] Username validation bugs (/thread-2100.html)



[FreakAuth Light] Username validation bugs - El Forum - 07-16-2007

[eluser]Référencement Google[/eluser]
Hi,

I don't know there is a bug here but it doesn't seem to work well for me.
In the config file it is set correctly:

Code:
$config['FAL_user_name_duplicate_validation'] = 'trim|required|xss_clean|username_check|username_duplicate_check';

But i still can register several users with the same username, it also does absolutly not check the username field, and didn't trim it.

Can somebody help me fix it ?


[FreakAuth Light] Username validation bugs - El Forum - 07-16-2007

[eluser]Référencement Google[/eluser]
I answer to myself because i've just got it after code analysis.
In the file FAL_front.php removing the lines 234 and 235 solve the problem.

REMOVED:
Code:
//if activated in config, sets the select country box
if ($this->CI->config->item('FAL_use_country'))

Does not need because this condition is just made after a few lines below.


[FreakAuth Light] Username validation bugs - El Forum - 07-17-2007

[eluser]Grahack[/eluser]
Yes, it was a 1.0.4 bug that Crimp found and fixed.