CakePHP3ã®å ¬å¼ããã¥ã¡ã³ãã«ãããã¥ã¼ããªã¢ã«ã§ã¯ããã°ã¤ã³å¦çãä¸è¨ã®ããã«è¨è¼ãã¦ãã¾ã <?php // In src/Controller/UsersController.php public function login() { if ($this->request->is('post')) { $user = $this->Auth->identify(); if ($user) { $this->Auth->setUser($user); return $this->redirect($this->Auth->redirectUrl()); } $this->Flash->error('Your username or password is incorrect.'); } } ããã§ãªãã¤ã¬ã¯ãå¦çããã¦ããã®ã¯ä¸è¨ã®é¨åã§ã return $this->redir

{{#tags}}- {{label}}
{{/tags}}