Add useful error message on failed login
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
Add timezone settings
|
Add timezone settings
|
||||||
Combine Password reset and setting new nickname
|
Combine Password reset and setting new nickname
|
||||||
|
Add useful error message on failed login
|
||||||
|
|
||||||
Version 1.17 - Apr. 20, 2016
|
Version 1.17 - Apr. 20, 2016
|
||||||
Make nocache refresh hack configurable in profile
|
Make nocache refresh hack configurable in profile
|
||||||
|
4
chat.php
4
chat.php
@ -2015,7 +2015,7 @@ function write_new_session(){
|
|||||||
$reentry=true;
|
$reentry=true;
|
||||||
break;
|
break;
|
||||||
}else{
|
}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']));
|
$stmt->execute(array($time, $U['nickname']));
|
||||||
return true;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
send_error($I['wrongpass']);
|
send_error("$I[regednick]<br>$I[wrongpass]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -337,6 +337,8 @@ $T=array(
|
|||||||
'disabledtext' => 'Kurzzeitig deaktiviert',
|
'disabledtext' => 'Kurzzeitig deaktiviert',
|
||||||
'defaulttz' => 'Standard Zeitzone',
|
'defaulttz' => 'Standard Zeitzone',
|
||||||
'tz' => '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',
|
'disabledtext' => 'Temporarily disabled',
|
||||||
'defaulttz' => 'Default time zone',
|
'defaulttz' => 'Default time zone',
|
||||||
'tz' => '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