22
33namespace CodeIgniter \Shield \Authentication \Passwords ;
44
5- use CodeIgniter \Shield \Interfaces \ Authenticatable ;
5+ use CodeIgniter \Shield \Entities \ User ;
66use CodeIgniter \Shield \Result ;
77
88/**
@@ -18,7 +18,7 @@ class NothingPersonalValidator extends BaseValidator implements ValidatorInterfa
1818 * If true is returned the password will be passed to next validator.
1919 * If false is returned the validation process will be immediately stopped.
2020 */
21- public function check (string $ password , ?Authenticatable $ user = null ): Result
21+ public function check (string $ password , ?User $ user = null ): Result
2222 {
2323 $ password = \strtolower ($ password );
2424
@@ -52,7 +52,7 @@ public function check(string $password, ?Authenticatable $user = null): Result
5252 *
5353 * @return bool
5454 */
55- protected function isNotPersonal (string $ password , ?Authenticatable $ user )
55+ protected function isNotPersonal (string $ password , ?User $ user )
5656 {
5757 $ userName = \strtolower ($ user ->username );
5858 $ email = \strtolower ($ user ->email );
@@ -153,7 +153,7 @@ protected function isNotPersonal(string $password, ?Authenticatable $user)
153153 *
154154 * @return bool
155155 */
156- protected function isNotSimilar (string $ password , ?Authenticatable $ user )
156+ protected function isNotSimilar (string $ password , ?User $ user )
157157 {
158158 $ maxSimilarity = (float ) $ this ->config ->maxSimilarity ;
159159 // sanity checking - working range 1-100, 0 is off
0 commit comments