mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-26 06:34:07 +00:00
Remove obsolete code
This commit is contained in:
@@ -32,7 +32,6 @@ HeaderAuthenticator.prototype.authenticateRequest = function(request,response,st
|
|||||||
// Otherwise, authenticate as the username in the specified header
|
// Otherwise, authenticate as the username in the specified header
|
||||||
var username = request.headers[this.header];
|
var username = request.headers[this.header];
|
||||||
if(!username) {
|
if(!username) {
|
||||||
var servername = state.wiki.getTiddlerText("$:/SiteTitle") || "TiddlyWiki5";
|
|
||||||
response.writeHead(401,"Authorization header required to login to '" + state.server.servername + "'");
|
response.writeHead(401,"Authorization header required to login to '" + state.server.servername + "'");
|
||||||
response.end();
|
response.end();
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user