Add useful error message on failed login
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
Add timezone settings
|
||||
Combine Password reset and setting new nickname
|
||||
Add useful error message on failed login
|
||||
|
||||
Version 1.17 - Apr. 20, 2016
|
||||
Make nocache refresh hack configurable in profile
|
||||
|
4
chat.php
4
chat.php
@ -2015,7 +2015,7 @@ function write_new_session(){
|
||||
$reentry=true;
|
||||
break;
|
||||
}else{
|
||||
send_error($I['wrongpass']);
|
||||
send_error("$I[userloggedin]<br>$I[wrongpass]");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2294,7 +2294,7 @@ function check_member(){
|
||||
$stmt->execute(array($time, $U['nickname']));
|
||||
return true;
|
||||
}else{
|
||||
send_error($I['wrongpass']);
|
||||
send_error("$I[regednick]<br>$I[wrongpass]");
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
@ -337,6 +337,8 @@ $T=array(
|
||||
'disabledtext' => 'Kurzzeitig deaktiviert',
|
||||
'defaulttz' => 'Standard Zeitzone',
|
||||
'tz' => 'Zeitzone',
|
||||
'optional' => '(optional)'
|
||||
'optional' => '(optional)',
|
||||
'userloggedin' => 'Ein Nutzer mit diesem Nicknamen ist bereits angemeldet.',
|
||||
'regednick' => 'Dieser Nickname ist ein registeriertes Mitglied.'
|
||||
);
|
||||
?>
|
||||
|
@ -337,6 +337,8 @@ $I=array(
|
||||
'disabledtext' => 'Temporarily disabled',
|
||||
'defaulttz' => 'Default time zone',
|
||||
'tz' => 'Time zone',
|
||||
'optional' => '(optional)'
|
||||
'optional' => '(optional)',
|
||||
'userloggedin' => 'A user with this nickname is already logged in.',
|
||||
'regednick' => 'This nickname is a registered member.'
|
||||
);
|
||||
?>
|
||||
|
Reference in New Issue
Block a user