I am modifying request data as follows:
$this->request->data[‘user_name’] = $data[“userAccount”];
$this->request->data[‘user_pass’] = $data[“userPass”];
$user = $this->Auth->identify();
I get the following warning:
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
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?
Sorry! This thread resolved!!!