Removed direct references to $_REQUEST and $_POST
This commit is contained in:
@@ -22,11 +22,11 @@ class Controller_User_Service extends Controller_Service {
|
||||
public function action_ajaxmanage() {
|
||||
$so = ORM::factory('Service',$this->request->param('id'));
|
||||
$k = Session::instance()->get_once('manage_button');
|
||||
$amo = $so->plugin(isset($_REQUEST['t']) ? $_REQUEST['t'] : '');
|
||||
$amo = $so->plugin($this->request->query('t'));
|
||||
|
||||
$o = array(
|
||||
'u'=>$amo->username() ? $amo->username() : strtolower($amo->name()),
|
||||
'p'=>(! $k OR ! $this->request->is_ajax() OR ! $so->loaded() OR ! isset($_REQUEST['k']) OR $k != $_REQUEST['k']) ? Random::char() : $amo->password(),
|
||||
'p'=>(! $k OR ! $this->request->is_ajax() OR ! $so->loaded() OR $k != $this->request->query('k')) ? Random::char() : $amo->password(),
|
||||
);
|
||||
|
||||
$this->response->headers('Content-Type','application/json');
|
||||
|
Reference in New Issue
Block a user