]> git.wh0rd.org Git - tt-rss.git/commitdiff
simplify default password checking
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 10 Aug 2007 06:07:26 +0000 (07:07 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 10 Aug 2007 06:07:26 +0000 (07:07 +0100)
modules/pref-prefs.php

index 3a14c0d39a8d05b682310eda3fc0dcaebbc877e5..036a7607f397043bc5baff0e74584106db7be23f 100644 (file)
 
                        if (!SINGLE_USER_MODE) {
 
-                               $result = db_query($link, "SELECT id,email FROM ttrss_users
-                                       WHERE id = ".$_SESSION["uid"]." AND (pwd_hash = 'password' OR
-                                               pwd_hash = 'SHA1:".sha1("password")."')");
+                               $result = db_query($link, "SELECT id FROM ttrss_users
+                                       WHERE id = ".$_SESSION["uid"]." AND pwd_hash 
+                                       = 'SHA1:5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8'");
 
                                if (db_num_rows($result) != 0) {
                                        print format_warning(__("Your password is at default value,