Notice (1024) : Undefined property `UsersController::$Authentication` in `/DGE_NFS/app/vrc/src/Controller/UsersController.php` on line 125 [in /DGE_NFS/app/vrc/vendor/cakephp/cakephp/src/Controller/Controller.php, line 321]
Warning (512) : Unable to emit headers. Headers sent in file=/DGE_NFS/app/vrc/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in /DGE_NFS/app/vrc/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 65]
Warning (2) : Cannot modify header information - headers already sent by (output started at /DGE_NFS/app/vrc/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /DGE_NFS/app/vrc/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 163]
Warning (2) : Cannot modify header information - headers already sent by (output started at /DGE_NFS/app/vrc/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /DGE_NFS/app/vrc/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 192]
Error: Call to a member function getResult() on null

Call to a member function getResult() on null 📋

Error
Error in: APP/Controller/UsersController.php, line 125
APP/Controller/UsersController.php at line 125 (edit)
     */
    public function login()
    {
        $this->request->allowMethod(['get''post']);
        $result $this->Authentication->getResult();
        //dd($result);
        if ($result->isValid()) {
            $this->Flash->success(__('Login successful'));

If you want to customize this error message, create templates/Error/error500.php