Skip to content

Commit 21af4f0

Browse files
committed
docs: change section order
Acount Activation -> Two-Factor Authentication
1 parent b7a9e0c commit 21af4f0

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

docs/quickstart.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ NOTE: The examples assume that you have run the setup script and that you have c
1111
- [Customize logout redirect](#customize-logout-redirect)
1212
- [Customize Remember-me functionality](#customize-remember-me-functionality)
1313
- [Change Access Token Lifetime](#change-access-token-lifetime)
14-
- [Enable Two-Factor Authentication](#enable-two-factor-authentication)
1514
- [Enable Account Activation via Email](#enable-account-activation-via-email)
15+
- [Enable Two-Factor Authentication](#enable-two-factor-authentication)
1616
- [Authorization Flow](#authorization-flow)
1717
- [Change Available Groups](#change-available-groups)
1818
- [Set the Default Group](#set-the-default-group)
@@ -104,17 +104,6 @@ By default, Access Tokens can be used for 1 year since the last use. This can be
104104
public int $unusedTokenLifetime = YEAR;
105105
```
106106

107-
### Enable Two-Factor Authentication
108-
109-
Turned off by default, Shield's Email-based 2FA can be enabled by specifying the class to use in the `Auth` config file.
110-
111-
```php
112-
public array $actions = [
113-
'register' => null,
114-
'login' => 'CodeIgniter\Shield\Authentication\Actions\Email2FA',
115-
];
116-
```
117-
118107
### Enable Account Activation via Email
119108

120109
By default, once a user registers they have an active account that can be used. You can enable Shield's built-in, email-based activation flow within the `Auth` config file.
@@ -126,8 +115,16 @@ public array $actions = [
126115
];
127116
```
128117

118+
### Enable Two-Factor Authentication
129119

120+
Turned off by default, Shield's Email-based 2FA can be enabled by specifying the class to use in the `Auth` config file.
130121

122+
```php
123+
public array $actions = [
124+
'register' => null,
125+
'login' => 'CodeIgniter\Shield\Authentication\Actions\Email2FA',
126+
];
127+
```
131128

132129
## Authorization Flow
133130

0 commit comments

Comments
 (0)