You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/install.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,6 @@ These instructions assume that you have already [installed the CodeIgniter 4 app
15
15
> **Note**
16
16
> CodeIgniter Shield requires Codeigniter v4.2.3 or later.
17
17
18
-
> **Note**
19
-
> You must set ``Config\Security::$csrfProtection`` to `'session'` (or set `security.csrfProtection = session` in your `.env` file) for security reasons, if you use Session Authenticator.
20
-
21
18
Installation is done through [Composer](https://getcomposer.org). The example assumes you have it installed globally.
22
19
If you have it installed as a phar, or othewise you will need to adjust the way you call composer itself.
23
20
@@ -89,7 +86,7 @@ If you get `Specified key was too long` error:
89
86
90
87
### Command Setup
91
88
92
-
1. Run the following command. This command handles steps 1-3 of *Manual Setup* and runs the migrations.
89
+
1. Run the following command. This command handles steps 1-4 of *Manual Setup* and runs the migrations.
93
90
94
91
```
95
92
> php spark shield:setup
@@ -137,6 +134,8 @@ This requires that all of your controllers extend the `BaseController`, but that
137
134
service('auth')->routes($routes);
138
135
```
139
136
137
+
4.**Security Setup** Set `Config\Security::$csrfProtection` to `'session'` (or set `security.csrfProtection = session` in your `.env` file) for security reasons, if you use Session Authenticator.
138
+
140
139
## Controller Filters
141
140
142
141
Shield provides 4 [Controller Filters](https://codeigniter.com/user_guide/incoming/filters.html) you can
0 commit comments