diff options
author | Andrew Dolgov <[email protected]> | 2005-11-20 07:33:45 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-11-20 07:33:45 +0100 |
commit | a029d5309fa160d6e05b93bf41049b0e649a43bd (patch) | |
tree | 6bc84d7fdf0ab434c9563708cb62b5804f10cba3 | |
parent | 27eeb00baf25b164a45202481eb0cc9a7b3c8811 (diff) |
default password warning
-rw-r--r-- | backend.php | 10 |
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\">"; |