summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-10 07:07:26 +0100
committerAndrew Dolgov <[email protected]>2007-08-10 07:07:26 +0100
commitd84f95234a1825fadc25e35c78492bf7b9838393 (patch)
tree51f341beeb3be00fe72cb4bcd0604b3abb5cf7cc /modules
parent17a756d1932dd00f8ba6fc2eba63f01712669409 (diff)
simplify default password checking
Diffstat (limited to 'modules')
-rw-r--r--modules/pref-prefs.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php
index 3a14c0d39..036a7607f 100644
--- a/modules/pref-prefs.php
+++ b/modules/pref-prefs.php
@@ -177,9 +177,9 @@
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,