From 0a0bad781b86dac7b854a48b7c4a89bc27cbacf0 Mon Sep 17 00:00:00 2001 From: flop25 Date: Thu, 12 May 2011 14:26:21 +0000 Subject: 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 --- identification.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'identification.php') diff --git a/identification.php b/identification.php index c66edcbb7..00b92603a 100644 --- a/identification.php +++ b/identification.php @@ -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) ) { -- cgit v1.2.3