1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-12-09 01:48:08 +00:00

Drop fixed authorization

Important changes:
- UseFixedAuth is now UseAuth and toggles all kinds of authorization and
  registration
- UseRegistration is now AllowRegistration to better reflect the meaning
- LimitRegistration is now RegistrationLimit because it's not a boolean,
  it's a value (not "limit registration?", but "registration limit is
  ...")
- registered-users.json is now users.json, because all users are stored
  there
- user.AuthUsed is dropped in favor of new cfg.UseAuth which has the
  same meaning

I hope I have not forgotten anything.
This commit is contained in:
handlerug
2021-07-02 15:20:03 +07:00
parent e6265c9ad9
commit b87583ef28
19 changed files with 211 additions and 335 deletions

View File

@@ -11,7 +11,7 @@ HTTPPort = 8080
URL = https://wiki
[Authorization]
UseFixedAuth = true
UseAuth = true
UseRegistration = true
LimitRegistration = 10
AllowRegistration = true
RegistrationLimit = 10

View File

@@ -11,7 +11,7 @@ HTTPPort = 1737
URL = http://localhost:1737
[Authorization]
UseFixedAuth = true
UseAuth = true
UseRegistration = true
LimitRegistration = 3
AllowRegistration = true
RegistrationLimit = 3