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>
|
<tr>
|
||||||
<td colspan=3 align="center"><b> <? echo _("Password to enter preferences:"); ?> </b></td>
|
<td colspan=3 align="center"><b> <? echo _("Password to enter preferences:"); ?> </b></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<?
|
||||||
|
// print message if login was incorrect
|
||||||
|
if ($message) echo ("<tr><td colspan=3 align=\"center\"><font color=red>" . $message . "</font></td></tr>");
|
||||||
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center"><input type="password" name="passwd"></td>
|
<td align="center"><input type="password" name="passwd"></td>
|
||||||
<td><input type="submit" name="submit" value= <? echo _("Ok"); ?> </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
|
// check if password was entered
|
||||||
// if not: load login page
|
// if not: load login page
|
||||||
if (! $passwd) {
|
if (! $passwd) {
|
||||||
|
$message = _("No password was entered!");
|
||||||
require('conflogin.php');
|
require('conflogin.php');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
@ -90,6 +91,7 @@ if (! $passwd) {
|
||||||
include_once ('../../lib/config.inc');
|
include_once ('../../lib/config.inc');
|
||||||
$conf = new Config();
|
$conf = new Config();
|
||||||
if (!(($conf->get_Passwd()) == $passwd)) {
|
if (!(($conf->get_Passwd()) == $passwd)) {
|
||||||
|
$message = _("The password is invalid! Please try again.");
|
||||||
require('conflogin.php');
|
require('conflogin.php');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue