mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-18 23:31:25 -08:00
Fix logout triggering 404 error
See https://talk.tiddlywiki.org/t/logout-error-xmlhttprequest-error-code-404/5590/5 for details We can't POST to the logout endpoint without triggering authentication, so we report in advance whether logout is supported.
This commit is contained in:
parent
73507ca8b5
commit
95e6168839
3 changed files with 26 additions and 17 deletions
|
|
@ -21,6 +21,7 @@ exports.handler = function(request,response,state) {
|
|||
username: state.authenticatedUsername || state.server.get("anon-username") || "",
|
||||
anonymous: !state.authenticatedUsername,
|
||||
read_only: !state.server.isAuthorized("writers",state.authenticatedUsername),
|
||||
logout_is_available: false,
|
||||
space: {
|
||||
recipe: "default"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue