Skip to content

Commit 3086147

Browse files
authored
Merge pull request #156 from dotkernel/fixture-security
updated installation - added fixture warning
2 parents 6a6ffb3 + 175b733 commit 3086147

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

docs/book/v7/installation/doctrine-orm.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,20 @@ If everything ran correctly, you will get this confirmation.
184184

185185
> The version number `YYYYMMDDHHMMSS` is the timestamp of the migration.
186186
187+
### Important Security Concern
188+
189+
The following section deals with fixtures which create the first user and role records in the database.
190+
We recommend you **edit the names and passwords** found in the files below to prevent unauthorized users from logging into your application:
191+
192+
- `src/Core/src/App/Fixture/UserLoader.php`.
193+
- `src/Core/src/App/Fixture/AdminLoader.php`.
194+
195+
Look for these methods and change their current parameters:
196+
197+
- `setIdentity` for the **username**,
198+
- `usePassword` for the **password**,
199+
- and optionally `setFirstName` and `setLastName`.
200+
187201
### Executing Fixtures
188202

189203
Fixtures are used to seed the database with initial values.
@@ -194,20 +208,6 @@ This basically creates the first records in the database.
194208
> You can edit the initial records if your application demands it, even after running the fixtures.
195209
> For example, you can edit the user roles or the initial users.
196210
197-
> **Important**
198-
>
199-
> Edit the names and passwords of the initial users to prevent unauthorized users from logging into your application.
200-
> Make sure to do so in these files:
201-
>
202-
> - `src/Core/src/App/Fixture/UserLoader.php`.
203-
> - `src/Core/src/App/Fixture/AdminLoader.php`.
204-
>
205-
> Check for these methods and change their default parameters:
206-
>
207-
> - `setIdentity`.
208-
> - `usePassword`.
209-
> - And optionally `setFirstName` and `setLastName`.
210-
211211
To execute fixtures, run:
212212

213213
```shell

0 commit comments

Comments
 (0)