From a029d5309fa160d6e05b93bf41049b0e649a43bd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 20 Nov 2005 07:33:45 +0100 Subject: [PATCH] default password warning --- backend.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/backend.php b/backend.php index 0333e11f..0322743b 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 "
Warning: + Your password is at default value, please change it. +
"; + } + print "
"; print ""; -- 2.39.5