diff options
Diffstat (limited to 'include/account.php')
-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; |