File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -88,3 +88,17 @@ public $passwordValidators = [
8888 //'CodeIgniter\Shield\Authentication\Passwords\PwnedValidator',
8989];
9090```
91+
92+ You use ` strong_password ` rule for password validation explained above.
93+
94+ > ** Note**
95+ > The ` strong_password ` rule only supports use cases to check the user's own password.
96+ > It fetches the authenticated user's data for ** NothingPersonalValidator**
97+ > if the visitor is authenticated.
98+ >
99+ > If you want to have use cases that set and check another user's password,
100+ > you can't use ` strong_password ` . You need to use ` service('passwords') ` directly
101+ > to check the password.
102+ >
103+ > But remember, it is not good practice to set passwords for other users.
104+ > This is because the password should be known only by that user.
You can’t perform that action at this time.
0 commit comments