New Login path
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controllers;
|
||||
|
||||
class WrenchAuth extends BaseController
|
||||
{
|
||||
public function userLogin(){
|
||||
|
||||
$in = $this->request->getPost();
|
||||
$in["action"] = WRENCHBOARD_ACCOUNT_LOGIN;
|
||||
if (!isset($in["login_mode"])){
|
||||
$in["login_mode"] = MOBILE_LOGIN;
|
||||
}
|
||||
$endpoint = "USER_SESSION-";
|
||||
$out=[];
|
||||
// $out = $this->getCache($endpoint); // try find in cache
|
||||
// if ( empty($out) || !is_array($out)){
|
||||
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
||||
$out['internal_return'] = $ret;
|
||||
$this->saveCache($endpoint,$out,15000);
|
||||
// }
|
||||
return $this->summaryReturnData($in,$out); //json_encode( $final_out );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// WrenchAuth::userLogin
|
||||
Reference in New Issue
Block a user