Skip to content

Commit 2292502

Browse files
committed
Compile docs for website
1 parent 99d3eb4 commit 2292502

File tree

4 files changed

+116
-28
lines changed

4 files changed

+116
-28
lines changed

Diff for: docs/component-session.md

-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
# Session Component
22

3-
- [User Variable](#user-variable)
4-
- [Signing Out](#signing-out)
5-
- [Page Restriction](#page-restriction)
6-
- [Route Restriction](#route-restriction)
7-
- [Token Variable](#token-variable)
8-
93
The session component should be added to a layout that has registered users. It has no default markup.
104

11-
<a name="user-variable"></a>
125
## User Variable
136

147
You can check the logged in user by accessing the **{{ user }}** Twig variable:
@@ -21,7 +14,6 @@ You can check the logged in user by accessing the **{{ user }}** Twig variable:
2114
{% endif %}
2215
```
2316

24-
<a name="signing-out"></a>
2517
## Signing Out
2618

2719
The Session component allows a user to sign out of their session.
@@ -30,7 +22,6 @@ The Session component allows a user to sign out of their session.
3022
<a data-request="onLogout" data-request-data="{ redirect: '/good-bye' }">Sign out</a>
3123
```
3224

33-
<a name="page-restriction"></a>
3425
## Page Restriction
3526

3627
The Session component allows the restriction of a page or layout by allowing only signed in users, only guests or no restriction. This example shows how to restrict a page to users only:
@@ -46,7 +37,6 @@ redirect = "home"
4637

4738
The `security` property can be user, guest or all. The `redirect` property refers to a page name to redirect to when access is restricted.
4839

49-
<a name="route-restriction"></a>
5040
## Route Restriction
5141

5242
Access to routes can be restricted by applying the `AuthMiddleware`.
@@ -57,7 +47,6 @@ Route::group(['middleware' => \RainLab\User\Classes\AuthMiddleware::class], func
5747
});
5848
```
5949

60-
<a name="token-variable"></a>
6150
## Token Variable
6251

6352
The `token` Twig variable can be used for generating a new bearer token for the signed in user.

Diff for: docs/config.yaml

-17
This file was deleted.

0 commit comments

Comments
 (0)