diff --git a/index.php b/index.php index f1e18a2..722f316 100644 --- a/index.php +++ b/index.php @@ -49,7 +49,7 @@ if (isset($_POST['loguj'])) if (mysql_num_rows(mysql_query("SELECT * FROM `users` WHERE `user_login`='$login' && `user_pass`='$password' && `aktywne`='1'")) > 0) { $_SESSION['zalogowany'] = true; - $_SESSION['login'] = $login; + $_SESSION['login'] = strtolower($login); } else { echo "Wpisano zle dane lub konto nieaktywne."; } }