added message if login is incorrect
This commit is contained in:
parent
936bc65661
commit
82ff386188
|
@ -51,6 +51,10 @@ echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http:/
|
|||
<tr>
|
||||
<td colspan=3 align="center"><b> <? echo _("Password to enter preferences:"); ?> </b></td>
|
||||
</tr>
|
||||
<?
|
||||
// print message if login was incorrect
|
||||
if ($message) echo ("<tr><td colspan=3 align=\"center\"><font color=red>" . $message . "</font></td></tr>");
|
||||
?>
|
||||
<tr>
|
||||
<td align="center"><input type="password" name="passwd"></td>
|
||||
<td><input type="submit" name="submit" value= <? echo _("Ok"); ?> </td>
|
||||
|
|
|
@ -81,6 +81,7 @@ if ($_POST['passwd']) $passwd = $_POST['passwd'];
|
|||
// check if password was entered
|
||||
// if not: load login page
|
||||
if (! $passwd) {
|
||||
$message = _("No password was entered!");
|
||||
require('conflogin.php');
|
||||
exit;
|
||||
}
|
||||
|
@ -90,6 +91,7 @@ if (! $passwd) {
|
|||
include_once ('../../lib/config.inc');
|
||||
$conf = new Config();
|
||||
if (!(($conf->get_Passwd()) == $passwd)) {
|
||||
$message = _("The password is invalid! Please try again.");
|
||||
require('conflogin.php');
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue