ServerSettingsConfig
A class in TavernLib, TavernLib.Backend.Server.Configs.
The ServerConfigFile for server_settings.json. Hashes plain passwords and makes a listing token when there is none.
- Listed in TavernLib.Backend.Server.Configs
- Inherits or implements
ServerConfigFile<ServerSettings> - Documented in Server settings
Constructors
| Member | What it is |
|---|---|
ServerSettingsConfig(string filePath) | Created by TavernLib to read and write this config file at the given path. |
Fields
1 private and internal field
Methods
| Member | What it is |
|---|---|
override void ReadFromFile() | Reads the file, then makes and saves a random community_listing_token if it's empty. |
protected override bool Tidy(ServerSettings settings) | Swaps a plain password for its hash, or hashes a password_hash that isn't a SHA-256 hex string. Returns true when it changed anything. |
1 private and internal method
Used in
Members of other types that take, return or hold a ServerSettingsConfig: