aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-08-23 19:01:32 +0000
committerplegall <plg@piwigo.org>2011-08-23 19:01:32 +0000
commitce0179cd2620f5a5bcf41f84e97c2e429ebabd14 (patch)
tree87a69867cf4799e5faa0dd77a669b884562b9aa1
parent8f05d60554b73faad3784fdc6a4199ac4dd66e84 (diff)
fix indentation issues, tabs are forbidden
git-svn-id: http://piwigo.org/svn/trunk@11989 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--identification.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/identification.php b/identification.php
index 92b078458..70e46b18e 100644
--- a/identification.php
+++ b/identification.php
@@ -54,10 +54,14 @@ if (isset($_POST['login']))
}
else
{
- if ($conf['insensitive_case_logon'] == true)
- $_POST['username'] = search_case_username($_POST['username']);
- $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) )
{
redirect(empty($redirect_to) ? get_gallery_home_url() : $redirect_to);