1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-11 09:50:27 +00:00

Remove duplicate header

And provide a slightly more informative prompt
This commit is contained in:
Jermolene 2013-12-19 16:53:48 +00:00
parent 1336058336
commit 6c1489fc2f

View File

@ -95,9 +95,8 @@ SimpleServer.prototype.listen = function(port) {
if(username && password) {
// Check they match
if(self.checkCredentials(request,username,password) !== "ALLOWED") {
response.setHeader("WWW-Authenticate", 'Basic realm="Admin Area"');
response.writeHead(401,"Authentication required",{
"WWW-Authenticate": 'Basic realm="TiddlyWiki5"'
"WWW-Authenticate": 'Basic realm="Please provide your username and password to login to TiddlyWiki5"'
});
response.end();
return;