* fixes #487 replace "Invalid password" by "Invalid username or password" * missing space before exclamation mark
This commit is contained in:
parent
bd0d2ae645
commit
022bfd2493
3 changed files with 7 additions and 5 deletions
|
@ -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.');
|
$page['errors'][] = l10n('Cookies are blocked or not supported by your browser. You must enable cookies to connect.');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ($conf['insensitive_case_logon'] == true)
|
if ($conf['insensitive_case_logon'] == true)
|
||||||
{
|
{
|
||||||
$_POST['username'] = search_case_username($_POST['username']);
|
$_POST['username'] = search_case_username($_POST['username']);
|
||||||
|
@ -58,14 +58,14 @@ if (isset($_POST['login']))
|
||||||
|
|
||||||
$redirect_to = isset($_POST['redirect']) ? urldecode($_POST['redirect']) : '';
|
$redirect_to = isset($_POST['redirect']) ? urldecode($_POST['redirect']) : '';
|
||||||
$remember_me = isset($_POST['remember_me']) and $_POST['remember_me']==1;
|
$remember_me = isset($_POST['remember_me']) and $_POST['remember_me']==1;
|
||||||
|
|
||||||
if ( try_log_user($_POST['username'], $_POST['password'], $remember_me) )
|
if ( try_log_user($_POST['username'], $_POST['password'], $remember_me) )
|
||||||
{
|
{
|
||||||
redirect(empty($redirect_to) ? get_gallery_home_url() : $redirect_to);
|
redirect(empty($redirect_to) ? get_gallery_home_url() : $redirect_to);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$page['errors'][] = l10n('Invalid password!');
|
$page['errors'][] = l10n('Invalid username or password!');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -426,4 +426,5 @@ $lang['Album name, A → Z'] = 'Album name, A → Z';
|
||||||
$lang['Album name, Z → A'] = 'Album name, Z → A';
|
$lang['Album name, Z → A'] = 'Album name, Z → A';
|
||||||
$lang['Link: %s'] = 'Link: %s';
|
$lang['Link: %s'] = 'Link: %s';
|
||||||
$lang['Your authentication key is no longer valid.'] = 'Your authentication key is no longer valid.';
|
$lang['Your authentication key is no longer valid.'] = 'Your authentication key is no longer valid.';
|
||||||
?>
|
$lang['Invalid username or password!'] = 'Invalid username or password!';
|
||||||
|
?>
|
||||||
|
|
|
@ -425,4 +425,5 @@ $lang['Photo description'] = 'Description de la photo';
|
||||||
$lang['Album name, A → Z'] = 'Nom de l\'album, A → Z';
|
$lang['Album name, A → Z'] = 'Nom de l\'album, A → Z';
|
||||||
$lang['Album name, Z → A'] = 'Nom de l\'album, Z → A';
|
$lang['Album name, Z → A'] = 'Nom de l\'album, Z → A';
|
||||||
$lang['Link: %s'] = 'Lien: %s';
|
$lang['Link: %s'] = 'Lien: %s';
|
||||||
$lang['Your authentication key is no longer valid.'] = 'Votre clef d\'identification n\'est plus valide.';
|
$lang['Your authentication key is no longer valid.'] = 'Votre clef d\'identification n\'est plus valide.';
|
||||||
|
$lang['Invalid username or password!'] = 'Nom d\'utilisateur ou mot de passe invalide !';
|
||||||
|
|
Loading…
Reference in a new issue