diff options
author | Willi Eggeling <thewilli@gmail.com> | 2017-08-31 00:39:15 +0200 |
---|---|---|
committer | Willi Eggeling <thewilli@gmail.com> | 2017-09-03 11:46:49 +0200 |
commit | 27e21231e168e5a2a89563b2538a4f86df24e582 (patch) | |
tree | 851c51115ce4d01dd30e57a048f8ed8b2a3c4e1b /doc | |
parent | 96a1c79456b27892b9221707803f29585565b9dc (diff) | |
download | Shaarli-27e21231e168e5a2a89563b2538a4f86df24e582.tar.gz Shaarli-27e21231e168e5a2a89563b2538a4f86df24e582.tar.zst Shaarli-27e21231e168e5a2a89563b2538a4f86df24e582.zip |
added option to redirect all anonymous users to login page
- new setting *force_login* added and documented
- if both, *force_login* and *hide_public_links* are set to true, all requests
(except for the feeds) are redirected to the login page
Diffstat (limited to 'doc')
-rw-r--r-- | doc/md/Shaarli-configuration.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/md/Shaarli-configuration.md b/doc/md/Shaarli-configuration.md index d90e95eb..37486414 100644 --- a/doc/md/Shaarli-configuration.md +++ b/doc/md/Shaarli-configuration.md | |||
@@ -90,6 +90,7 @@ _These settings should not be edited_ | |||
90 | 90 | ||
91 | - **default_private_links**: Check the private checkbox by default for every new link. | 91 | - **default_private_links**: Check the private checkbox by default for every new link. |
92 | - **hide_public_links**: All links are hidden while logged out. | 92 | - **hide_public_links**: All links are hidden while logged out. |
93 | - **force_login**: if **hide_public_links** and this are set to `true`, all anonymous users are redirected to the login page. | ||
93 | - **hide_timestamps**: Timestamps are hidden. | 94 | - **hide_timestamps**: Timestamps are hidden. |
94 | - **remember_user_default**: Default state of the login page's *remember me* checkbox | 95 | - **remember_user_default**: Default state of the login page's *remember me* checkbox |
95 | - `true`: checked by default, `false`: unchecked by default | 96 | - `true`: checked by default, `false`: unchecked by default |
@@ -194,6 +195,7 @@ _These settings should not be edited_ | |||
194 | "privacy": { | 195 | "privacy": { |
195 | "default_private_links": true, | 196 | "default_private_links": true, |
196 | "hide_public_links": false, | 197 | "hide_public_links": false, |
198 | "force_login": false, | ||
197 | "hide_timestamps": false, | 199 | "hide_timestamps": false, |
198 | "remember_user_default": true | 200 | "remember_user_default": true |
199 | }, | 201 | }, |