Skip to content

Commit fafb8ea

Browse files
committed
docs: update docs
1 parent d17cf02 commit fafb8ea

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/concepts.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ is provided for you at `CodeIgniter\Shield\Models\UserModel`. You can change thi
2929
The only requirement is that your new class MUST extend the provided `UserModel`.
3030

3131
```php
32-
public $userProvider = 'CodeIgniter\Shield\Models\UserModel';
32+
public $userProvider = UserModel::class;
3333
```
3434

3535
## User Identities
@@ -80,10 +80,10 @@ You can choose which validators are used in `Config\Auth::$passwordValidators`:
8080

8181
```php
8282
public $passwordValidators = [
83-
'CodeIgniter\Shield\Authentication\Passwords\CompositionValidator',
84-
'CodeIgniter\Shield\Authentication\Passwords\NothingPersonalValidator',
85-
'CodeIgniter\Shield\Authentication\Passwords\DictionaryValidator',
86-
//'CodeIgniter\Shield\Authentication\Passwords\PwnedValidator',
83+
CompositionValidator::class,
84+
NothingPersonalValidator::class,
85+
DictionaryValidator::class,
86+
// PwnedValidator::class,
8787
];
8888
```
8989

docs/quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ By default, once a user registers they have an active account that can be used.
113113

114114
```php
115115
public array $actions = [
116-
'register' => 'CodeIgniter\Shield\Authentication\Actions\EmailActivator',
116+
'register' => \CodeIgniter\Shield\Authentication\Actions\EmailActivator::class,
117117
'login' => null,
118118
];
119119
```
@@ -125,7 +125,7 @@ Turned off by default, Shield's Email-based 2FA can be enabled by specifying the
125125
```php
126126
public array $actions = [
127127
'register' => null,
128-
'login' => 'CodeIgniter\Shield\Authentication\Actions\Email2FA',
128+
'login' => \CodeIgniter\Shield\Authentication\Actions\Email2FA::class,
129129
];
130130
```
131131

0 commit comments

Comments
 (0)