aboutsummaryrefslogtreecommitdiffstats
path: root/include/auth.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-08-26 14:44:24 +0200
committerfabrixxm <fabrix.xm@gmail.com>2011-08-26 14:44:24 +0200
commit5ec4a4e6deb5d28cbfab54093f8b4180912738d4 (patch)
tree653cb4738734d9f20bd1457c419105dcf235edea /include/auth.php
parent97806544bcd7ee3831ffc515062afe0812828b76 (diff)
parent1861dc1fae549a0ee2b6287d4f7dc7f8797f5070 (diff)
downloadvolse-hubzilla-5ec4a4e6deb5d28cbfab54093f8b4180912738d4.tar.gz
volse-hubzilla-5ec4a4e6deb5d28cbfab54093f8b4180912738d4.tar.bz2
volse-hubzilla-5ec4a4e6deb5d28cbfab54093f8b4180912738d4.zip
Merge remote-tracking branch 'friendika/master' into newui
Diffstat (limited to 'include/auth.php')
-rw-r--r--include/auth.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/auth.php b/include/auth.php
index 768af626f..b7b96bdc0 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -48,7 +48,8 @@ if((isset($_SESSION)) && (x($_SESSION,'authenticated')) && ((! (x($_POST,'auth-p
goaway(z_root());
}
- $r = q("SELECT * FROM `user` WHERE `uid` = %d LIMIT 1",
+ $r = q("SELECT `user`.*, `user`.`pubkey` as `upubkey`, `user`.`prvkey` as `uprvkey`
+ FROM `user` WHERE `uid` = %d LIMIT 1",
intval($_SESSION['uid'])
);
@@ -183,7 +184,8 @@ else {
// process normal login request
- $r = q("SELECT * FROM `user` WHERE ( `email` = '%s' OR `nickname` = '%s' )
+ $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",
dbesc(trim($_POST['openid_url'])),
dbesc(trim($_POST['openid_url'])),