This topic is locked

login lowercase

8/29/2011 06:44:48
PHPRunner General questions
S
shrun author

If the user enters the login in upercase, on login screen, before validating, how can i converting to lowercase?

P
procheck 8/29/2011
C
cgphp 8/29/2011

This is a bad practice but, anyway, here it is the solution. In the "Login page: Before process" event enter this code:

$_POST['username'] = strtolower($_POST['username']);