Improved session monitoring

This commit is contained in:
CHIEFSOFT\ameye
2024-07-07 18:28:51 -04:00
parent 09c14cf2ca
commit 23e676e5bc
3 changed files with 39 additions and 8 deletions
+18 -3
View File
@@ -1,13 +1,26 @@
<?php
namespace App\Controllers;
use CodeIgniter\API\ResponseTrait;
class WrenchAccount extends BaseController
{
use ResponseTrait;
public function CreateNewAccount(){
/*
array (size=10)
'firstname' => string 'OluNG' (length=5)
'lastname' => string 'AmeyNG' (length=6)
'email' => string 'ameye+auglonger3646@chiefsoft.com' (length=33)
'username' => string 'ameye+auglonger3646@chiefsoft.com' (length=33)
'password' => string 'may12002' (length=8)
'terms' => int 1
'news' => int 1
'loc' => string '38.101.241.200' (length=14)
'country' => string 'NG' (length=2)
'action' => int 11010
*/
$out=[];
$raw_json = file_get_contents('php://input');
@@ -27,7 +40,9 @@ class WrenchAccount extends BaseController
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
$out['internal_return'] = $ret;
return $this->summaryReturnData($in,$out); //json_encode( $final_out );
return $this->respond( $this->summaryReturnData($in,$out), 200);
// return $this->summaryReturnData($in,$out); //json_encode( $final_out );
}
}