default password warning

This commit is contained in:
Andrew Dolgov 2005-11-20 07:33:45 +01:00
parent 27eeb00baf
commit a029d5309f

View file

@ -1724,6 +1724,16 @@
if (!SINGLE_USER_MODE) {
$result = db_query($link, "SELECT id FROM ttrss_users
WHERE id = ".$_SESSION["uid"]." AND (pwd_hash = 'password' OR
pwd_hash = 'SHA1:".sha1("password")."')");
if (db_num_rows($result) != 0) {
print "<div class=\"warning\"><b>Warning</b>:
Your password is at default value, please change it.
</div>";
}
print "<form action=\"backend.php\" method=\"POST\">";
print "<table width=\"100%\" class=\"prefPrefsList\">";