Skip to content

Commit b651b89

Browse files
authored
Fix outdated Authentication plugin version and namespace for DefaultPasswordHasher
1) Updated composer command from ^2.0 to ^3.0. 2) Updated DefaultPasswordHasher namespace from use Cake\Auth\DefaultPasswordHasher; to Authentication\PasswordHasher\DefaultPasswordHasher
1 parent 7c06953 commit b651b89

File tree

1 file changed

+2
-2
lines changed
  • ja/tutorials-and-examples/blog-auth-example

1 file changed

+2
-2
lines changed

ja/tutorials-and-examples/blog-auth-example/auth.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ composerを使ってAuthenticationプラグインをインストールします
121121

122122
.. code-block:: console
123123
124-
composer require "cakephp/authentication:^2.0"
124+
composer require "cakephp/authentication:^3.0"
125125
126126
127127
パスワードハッシュの追加
@@ -134,7 +134,7 @@ composerを使ってAuthenticationプラグインをインストールします
134134
// src/Model/Entity/User.php
135135
namespace App\Model\Entity;
136136

137-
use Cake\Auth\DefaultPasswordHasher;
137+
use Authentication\PasswordHasher\DefaultPasswordHasher;
138138
use Cake\ORM\Entity;
139139

140140
class User extends Entity

0 commit comments

Comments
 (0)