From 5c8d854d7d0fb1dbd5454ab41cf9722de2e4ec17 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 16 Aug 2012 03:37:07 -0700 Subject: zregister, cont. --- include/account.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/account.php') diff --git a/include/account.php b/include/account.php index ead8ce862..e978e64b0 100644 --- a/include/account.php +++ b/include/account.php @@ -141,6 +141,17 @@ function create_account($arr) { return($result); } + $r = q("select * from account where account_email = '%s' and password = '%s' limit 1", + dbesc($email), + dbesc($password_encoded) + ); + if($r && count($r)) { + $result['account'] = $r[0]; + } + else { + logger('create_account: could not retrieve newly created account'); + } + $result['success'] = true; $result['email'] = $email; -- cgit v1.2.3