mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-11 20:35:42 +00:00
WebServer - change /login-basic route to /login/basic
To avoid clashing with tiddlers called "login-basic" :) We also need to revise the rout for /status for the same reason, but there are backward compatibility issues there
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
/*\
|
||||
title: $:/core/modules/server/routes/get-login-basic.js
|
||||
title: $:/core/modules/server/routes/get-login/basic.js
|
||||
type: application/javascript
|
||||
module-type: route
|
||||
|
||||
GET /login-basic -- force a Basic Authentication challenge
|
||||
GET /login/basic -- force a Basic Authentication challenge
|
||||
|
||||
\*/
|
||||
(function() {
|
||||
@@ -14,7 +14,7 @@ GET /login-basic -- force a Basic Authentication challenge
|
||||
|
||||
exports.method = "GET";
|
||||
|
||||
exports.path = /^\/login-basic$/;
|
||||
exports.path = /^\/login\/basic$/;
|
||||
|
||||
exports.handler = function(request,response,state) {
|
||||
if(!state.authenticatedUsername) {
|
||||
|
||||
Reference in New Issue
Block a user