aboutsummaryrefslogtreecommitdiffstats
path: root/include/account.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-16 03:37:07 -0700
committerfriendica <info@friendica.com>2012-08-16 03:37:07 -0700
commit5c8d854d7d0fb1dbd5454ab41cf9722de2e4ec17 (patch)
treec4f1c0475bd8735a06aea336969c7c28c5b08bb4 /include/account.php
parent434bcfef8ba816805df29736efb36f8c95c20769 (diff)
downloadvolse-hubzilla-5c8d854d7d0fb1dbd5454ab41cf9722de2e4ec17.tar.gz
volse-hubzilla-5c8d854d7d0fb1dbd5454ab41cf9722de2e4ec17.tar.bz2
volse-hubzilla-5c8d854d7d0fb1dbd5454ab41cf9722de2e4ec17.zip
zregister, cont.
Diffstat (limited to 'include/account.php')
-rw-r--r--include/account.php11
1 files changed, 11 insertions, 0 deletions
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;