Skip to content

Commit 4537922

Browse files
committed
Fix line highlighting numbers in authentication tutorial
1 parent 88e47af commit 4537922

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/en/tutorials-and-examples/cms/authentication.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public function getAuthenticationService(ServerRequestInterface $request): Authe
191191

192192
In your `AppController` class add the following code:
193193

194-
```php {7}
194+
```php {8}
195195
// src/Controller/AppController.php
196196
public function initialize(): void
197197
{
@@ -291,7 +291,7 @@ We need to add a couple more details to configure our application.
291291
We want all `view` and `index` pages accessible without logging in so we'll add this specific
292292
configuration in AppController:
293293

294-
```php {6}
294+
```php {7}
295295
// in src/Controller/AppController.php
296296
public function beforeFilter(\Cake\Event\EventInterface $event): void
297297
{
@@ -336,7 +336,7 @@ If you try to visit **/users/add** without being logged in, you will be
336336
redirected to the login page. We should fix that as we want to allow people to
337337
sign up for our application. In the `UsersController` update the `beforeFilter`:
338338

339-
```php {3}
339+
```php {2}
340340
// In UsersController::beforeFilter()
341341
$this->Authentication->allowUnauthenticated(['login', 'add']);
342342
```

0 commit comments

Comments
 (0)