mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-12-08 09:28:10 +00:00
Document lock
This commit is contained in:
27
help/en/lock.myco
Normal file
27
help/en/lock.myco
Normal file
@@ -0,0 +1,27 @@
|
||||
# Lock
|
||||
//This article is intended for wiki administrators.//
|
||||
|
||||
Sometimes, you may want to let only authorized users to view your wiki. This is when **lock** comes in handy.
|
||||
|
||||
## Enabling
|
||||
In `config.ini`, set `Locked` to `true` to enable. `UseAuth` must also be `true`.
|
||||
```ini
|
||||
...
|
||||
[Authorization]
|
||||
UseAuth = true
|
||||
Locked = true
|
||||
...
|
||||
```
|
||||
|
||||
Restart your wiki.
|
||||
|
||||
## Usage
|
||||
When unauthorized people visit your wiki, they will see something like this:
|
||||
img {
|
||||
https://mycorrhiza.wiki/binary/release/1.3/lock_screenshot
|
||||
}
|
||||
|
||||
If they log in, they will be able to navigate the wiki. They are not able to register, though. [[/help/en/telegram | Telegram]] authorization is supported.
|
||||
|
||||
## See also
|
||||
=> /help/en/whitelist Whitelist
|
||||
Reference in New Issue
Block a user