Skip to content

Commit e2b171b

Browse files
authored
Merge pull request #682 from datamweb/docs-improvement
docs: improvements in the PHP block
2 parents 6319ea6 + 7eb9035 commit e2b171b

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

docs/forcing_password_reset.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Depending on the scope of your application, there may be times when you'll decid
66
- [Available Methods](#available-methods)
77
- [Check if a User Requires Password Reset](#check-if-a-user-requires-password-reset)
88
- [Force Password Reset On a User](#force-password-reset-on-a-user)
9-
- [Removing Password Reset Flag On a User](#removing-password-reset-flag-on-a-user)
9+
- [Remove Force Password Reset Flag On a User](#remove-force-password-reset-flag-on-a-user)
1010
- [Force Password Reset On Multiple Users](#force-password-reset-on-multiple-users)
1111
- [Force Password Reset On All Users](#force-password-reset-on-all-users)
1212

@@ -46,9 +46,8 @@ If you see the need to force password reset for more than one user, the `forceMu
4646

4747
```php
4848
use CodeIgniter\Shield\Models\UserIdentityModel;
49-
...
50-
...
51-
...
49+
50+
// ...
5251
$identities = new UserIdentityModel();
5352
$identities->forceMultiplePasswordReset([1,2,3,4]);
5453
```
@@ -59,9 +58,8 @@ If you suspect a security breach or compromise in the passwords of your users, y
5958

6059
```php
6160
use CodeIgniter\Shield\Models\UserIdentityModel;
62-
...
63-
...
64-
...
61+
62+
// ...
6563
$identities = new UserIdentityModel();
6664
$identities->forceGlobalPasswordReset();
6765
```

docs/guides/strengthen_password.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ and `$hashThreads`.
9494
If you use `PASSWORD_ARGON2ID`, you should use PHP's constants:
9595

9696
```php
97-
public int $hashMemoryCost = PASSWORD_ARGON2_DEFAULT_MEMORY_COST;
97+
public int $hashMemoryCost = PASSWORD_ARGON2_DEFAULT_MEMORY_COST;
9898

99-
public int $hashTimeCost = PASSWORD_ARGON2_DEFAULT_TIME_COST;
100-
public int $hashThreads = PASSWORD_ARGON2_DEFAULT_THREADS;
99+
public int $hashTimeCost = PASSWORD_ARGON2_DEFAULT_TIME_COST;
100+
public int $hashThreads = PASSWORD_ARGON2_DEFAULT_THREADS;
101101
```
102102

103103
## Maximum Password Length

0 commit comments

Comments
 (0)