diff options
author | friendica <info@friendica.com> | 2012-08-16 03:37:07 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-16 03:37:07 -0700 |
commit | 5c8d854d7d0fb1dbd5454ab41cf9722de2e4ec17 (patch) | |
tree | c4f1c0475bd8735a06aea336969c7c28c5b08bb4 /include | |
parent | 434bcfef8ba816805df29736efb36f8c95c20769 (diff) | |
download | volse-hubzilla-5c8d854d7d0fb1dbd5454ab41cf9722de2e4ec17.tar.gz volse-hubzilla-5c8d854d7d0fb1dbd5454ab41cf9722de2e4ec17.tar.bz2 volse-hubzilla-5c8d854d7d0fb1dbd5454ab41cf9722de2e4ec17.zip |
zregister, cont.
Diffstat (limited to 'include')
-rw-r--r-- | include/account.php | 11 |
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; |