mirror of
https://github.com/friendica/friendica
synced 2025-04-26 03:50:12 +00:00
account expiration structures
This commit is contained in:
parent
8bf6a29d4e
commit
5b3f645939
6 changed files with 16 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue