feature:1835

better managment if $conf['insensitive_case_logon'] is true, for identification

git-svn-id: http://piwigo.org/svn/trunk@10860 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
flop25
2011-05-12 14:26:21 +00:00
parent b658b84544
commit 0a0bad781b
2 changed files with 35 additions and 1 deletions
+3 -1
View File
@@ -54,7 +54,9 @@ if (isset($_POST['login']))
}
else
{
$redirect_to = isset($_POST['redirect']) ? urldecode($_POST['redirect']) : '';
if ($conf['insensitive_case_logon'] == true)
$_POST['username'] = search_case_username($_POST['username']);
$redirect_to = isset($_POST['redirect']) ? urldecode($_POST['redirect']) : '';
$remember_me = isset($_POST['remember_me']) and $_POST['remember_me']==1;
if ( try_log_user($_POST['username'], $_POST['password'], $remember_me) )
{