1
1
Fork 0

Remove unused upubkey and uprvkey from queries

- Switched queries to new dba::* functions
This commit is contained in:
Hypolite Petovan 2017-11-26 14:55:47 -05:00
commit 2196a0577b
8 changed files with 49 additions and 43 deletions

View file

@ -33,7 +33,8 @@ function openid_content(App $a) {
// mod/settings.php in 8367cad so it might have left mixed
// records in the user table
//
$r = q("SELECT *, `user`.`pubkey` as `upubkey`, `user`.`prvkey` as `uprvkey` FROM `user`
$r = q("SELECT *
FROM `user`
WHERE ( `openid` = '%s' OR `openid` = '%s' )
AND `blocked` = 0 AND `account_expired` = 0
AND `account_removed` = 0 AND `verified` = 1