aboutsummaryrefslogtreecommitdiffstats
path: root/identification.php
diff options
context:
space:
mode:
Diffstat (limited to 'identification.php')
-rw-r--r--identification.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/identification.php b/identification.php
index be22eb571..3e5ab1560 100644
--- a/identification.php
+++ b/identification.php
@@ -50,7 +50,7 @@ if (isset($_POST['login']))
$page['errors'][] = l10n('Cookies are blocked or not supported by your browser. You must enable cookies to connect.');
}
else
- {
+ {
if ($conf['insensitive_case_logon'] == true)
{
$_POST['username'] = search_case_username($_POST['username']);
@@ -58,14 +58,14 @@ if (isset($_POST['login']))
$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);
}
else
{
- $page['errors'][] = l10n('Invalid password!');
+ $page['errors'][] = l10n('Invalid username or password!');
}
}
}