I am modifying request data as follows:
$data=$this->request->getData();
$this->request->data[‘user_name’] = $data[“userAccount”];
$this->request->data[‘user_pass’] = $data[“userPass”];
$user = $this->Auth->identify();
I get the following warning:
[ Deprecated (16384)](javascript:void(0);): Accessing data
as a property will be removed in 4.0.0. Use request->getData() instead. - LoginController.php, line: 50 You can disable deprecation warnings by setting Error.errorLevel
to E_ALL & ~E_USER_DEPRECATED
in your config/app.php. [ CORE/src/Core/functions.php , line 311
Is there a way of overcoming this without disabling warnings and notices?
Regards.
Sorry! This thread resolved!!!