Repository navigation
Latchkey 0.5.0
The join page gets its own switches, can live on a host or under a path, and invites become links and tickets (D187).
Changes
- Three switches.
landing.enabledturns the page on.invites.enabledlets players use invite codes, andsessions.enabledlets them sign a browser in. Each is off until set, and the page only offers what's on. With invites off, admins can't make invites, so no code goes out that can't work. With sign-in off, a used invite still puts the player on the whitelist but signs no browser in, and/signingives no link. - A join page on its own host, or under a path.
landing.public-urlcan behttps://join.example.orgorhttps://example.org/join, with up to three lowercase path parts. Under a path, Latchkey answers only that path, and its cookies stay on it. - Invite links. An invite link carries the code after
#, so it never reaches a web log. Opening it fills the code in, and the player still presses Continue. In game,invite createnow also shows the admin that link. - Tickets for Leaf Juice. While invites can be used,
invite create --jsonadds aticketwithserver,join,link(join+#{code}) andexpires. The code stays in theonce/file as before, so the console never sees it. - The map is unchanged. It still goes through Mapkeeper's hand-off.
Upgrading
Replace the jar. Invites and sign-in are off after the upgrade until you add enabled: true under invites: and sessions: in plugins/Latchkey/config.yml, then run /latchkey reload. /latchkey status names each one that's off.
To move the page to a join host:
- Point the new name at Latchkey in your proxy.
- Set
landing.public-urlto the new address. - Reload.
Tested
264 unit and HTTP tests pass, 24 of them new:
- each switch on its own, off by default, and that a switch can't open a part another check stops;
- the page under a path, including a whole invite under
/joinand its cookie path; - the code-from-link script, allowed by hash;
- the ticket in the JSON answer, never carrying the code.
Not tried yet: a real proxy at a join host or a path, a real browser opening an invite link, or Leaf Juice printing a ticket.