summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-20 07:33:45 +0100
committerAndrew Dolgov <[email protected]>2005-11-20 07:33:45 +0100
commita029d5309fa160d6e05b93bf41049b0e649a43bd (patch)
tree6bc84d7fdf0ab434c9563708cb62b5804f10cba3 /backend.php
parent27eeb00baf25b164a45202481eb0cc9a7b3c8811 (diff)
default password warning
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index 0333e11fd..0322743ba 100644
--- a/backend.php
+++ b/backend.php
@@ -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\">";