diff --git a/en/controllers/components/authentication.rst b/en/controllers/components/authentication.rst index b9212ec3cf..94dd7bd96b 100644 --- a/en/controllers/components/authentication.rst +++ b/en/controllers/components/authentication.rst @@ -230,9 +230,7 @@ working with a login form could look like:: $this->Auth->setUser($user); return $this->redirect($this->Auth->redirectUrl()); } else { - $this->Flash->error(__('Username or password is incorrect'), [ - 'key' => 'auth' - ]); + $this->Flash->error(__('Username or password is incorrect')); } } }