aboutsummaryrefslogtreecommitdiffstats
path: root/include/auth.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-18 19:53:45 -0700
committerFriendika <info@friendika.com>2011-09-18 19:53:45 -0700
commit5b3f6459392ba6f417cfc5cb0d38094c009c6913 (patch)
treed98c801e79dc3542cf89769d7b943f1b8292a38b /include/auth.php
parent8bf6a29d4e05af5d461da3f01999785dc12ee7da (diff)
downloadvolse-hubzilla-5b3f6459392ba6f417cfc5cb0d38094c009c6913.tar.gz
volse-hubzilla-5b3f6459392ba6f417cfc5cb0d38094c009c6913.tar.bz2
volse-hubzilla-5b3f6459392ba6f417cfc5cb0d38094c009c6913.zip
account expiration structures
Diffstat (limited to 'include/auth.php')
-rw-r--r--include/auth.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/auth.php b/include/auth.php
index b7b96bdc0..1f16b3504 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -49,7 +49,7 @@ if((isset($_SESSION)) && (x($_SESSION,'authenticated')) && ((! (x($_POST,'auth-p
}
$r = q("SELECT `user`.*, `user`.`pubkey` as `upubkey`, `user`.`prvkey` as `uprvkey`
- FROM `user` WHERE `uid` = %d LIMIT 1",
+ FROM `user` WHERE `uid` = %d AND `blocked` = 0 AND `account_expired` = 0 AND `verified` = 1 LIMIT 1",
intval($_SESSION['uid'])
);
@@ -186,7 +186,7 @@ else {
$r = q("SELECT `user`.*, `user`.`pubkey` as `upubkey`, `user`.`prvkey` as `uprvkey`
FROM `user` WHERE ( `email` = '%s' OR `nickname` = '%s' )
- AND `password` = '%s' AND `blocked` = 0 AND `verified` = 1 LIMIT 1",
+ AND `password` = '%s' AND `blocked` = 0 AND `account_expired` = 0 AND `verified` = 1 LIMIT 1",
dbesc(trim($_POST['openid_url'])),
dbesc(trim($_POST['openid_url'])),
dbesc($encrypted)