diff options
| author | spiderr <spiderr@bitweaver.org> | 2018-11-09 11:54:00 -0500 |
|---|---|---|
| committer | spiderr <spiderr@bitweaver.org> | 2018-11-09 11:54:00 -0500 |
| commit | 56c23efba2a5f8689e9c5c1f26483fca1ee295be (patch) | |
| tree | 5d49c9b1a361446ddcb475d27687e82fb4aa6e43 /admin | |
| parent | bc94dab37e67a264600d13339ff0ffc0614bf7f5 (diff) | |
| download | users-56c23efba2a5f8689e9c5c1f26483fca1ee295be.tar.gz users-56c23efba2a5f8689e9c5c1f26483fca1ee295be.tar.bz2 users-56c23efba2a5f8689e9c5c1f26483fca1ee295be.zip | |
api hash clean up
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/api_inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/api_inc.php b/admin/api_inc.php index 790c306..ee8a4e1 100644 --- a/admin/api_inc.php +++ b/admin/api_inc.php @@ -12,7 +12,7 @@ function bituser_api_handler( $pMethod, $pRequest ) { // case 'PUT': $newUser = new BitUser(); if( $newUser->register( $pRequest ) ) { - $gApi->outputJson( 200, $newUser->mInfo ); + $gApi->outputJson( 200, $newUser->exportHash() ); } else { $gApi->outputJson( HttpStatusCodes::HTTP_CONFLICT, $newUser->mErrors ); } @@ -22,7 +22,7 @@ function bituser_api_handler( $pMethod, $pRequest ) { $gApi->verifyAuthorization(); $gContent = &$gBitUser; $gContent->verifyViewPermission(); - $gApi->outputJson( HttpStatusCodes::HTTP_OK, $gContent->mInfo ); + $gApi->outputJson( HttpStatusCodes::HTTP_OK, $gContent->exportHash() ); break; case 'DELETE': |
