|
9 | 9 | use CodeIgniter\Shield\Authentication\AuthenticatorInterface; |
10 | 10 | use CodeIgniter\Shield\Authentication\Authenticators\AccessTokens; |
11 | 11 | use CodeIgniter\Shield\Authentication\Authenticators\Session; |
| 12 | +use CodeIgniter\Shield\Authentication\Passwords\CompositionValidator; |
| 13 | +use CodeIgniter\Shield\Authentication\Passwords\DictionaryValidator; |
| 14 | +use CodeIgniter\Shield\Authentication\Passwords\NothingPersonalValidator; |
| 15 | +use CodeIgniter\Shield\Authentication\Passwords\PwnedValidator; |
12 | 16 | use CodeIgniter\Shield\Authentication\Passwords\ValidatorInterface; |
13 | 17 | use CodeIgniter\Shield\Models\UserModel; |
14 | 18 |
|
@@ -57,8 +61,8 @@ class Auth extends BaseConfig |
57 | 61 | * You must register actions in the order of the actions to be performed. |
58 | 62 | * |
59 | 63 | * Available actions with Shield: |
60 | | - * - register: 'CodeIgniter\Shield\Authentication\Actions\EmailActivator' |
61 | | - * - login: 'CodeIgniter\Shield\Authentication\Actions\Email2FA' |
| 64 | + * - register: \CodeIgniter\Shield\Authentication\Actions\EmailActivator::class |
| 65 | + * - login: \CodeIgniter\Shield\Authentication\Actions\Email2FA::class |
62 | 66 | * |
63 | 67 | * @var array<string, class-string<ActionInterface>|null> |
64 | 68 | */ |
@@ -209,10 +213,10 @@ class Auth extends BaseConfig |
209 | 213 | * @var class-string<ValidatorInterface>[] |
210 | 214 | */ |
211 | 215 | public array $passwordValidators = [ |
212 | | - 'CodeIgniter\Shield\Authentication\Passwords\CompositionValidator', |
213 | | - 'CodeIgniter\Shield\Authentication\Passwords\NothingPersonalValidator', |
214 | | - 'CodeIgniter\Shield\Authentication\Passwords\DictionaryValidator', |
215 | | - // 'CodeIgniter\Shield\Authentication\Passwords\PwnedValidator', |
| 216 | + CompositionValidator::class, |
| 217 | + NothingPersonalValidator::class, |
| 218 | + DictionaryValidator::class, |
| 219 | + // PwnedValidator::class, |
216 | 220 | ]; |
217 | 221 |
|
218 | 222 | /** |
@@ -333,7 +337,7 @@ class Auth extends BaseConfig |
333 | 337 | * |
334 | 338 | * @var class-string<UserModel> |
335 | 339 | */ |
336 | | - public string $userProvider = 'CodeIgniter\Shield\Models\UserModel'; |
| 340 | + public string $userProvider = UserModel::class; |
337 | 341 |
|
338 | 342 | /** |
339 | 343 | * Returns the URL that a user should be redirected |
|
0 commit comments