]> git.wh0rd.org Git - tt-rss.git/commitdiff
default password warning
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 20 Nov 2005 06:33:45 +0000 (07:33 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 20 Nov 2005 06:33:45 +0000 (07:33 +0100)
backend.php

index 0333e11fd1ac867c860aa8921a3d474b5edbefd4..0322743baddc5ffbbb85c71e748355c575f0b606 100644 (file)
 
                        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\">";