mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-11 18:00:26 +00:00
Remove duplicate header
And provide a slightly more informative prompt
This commit is contained in:
parent
1336058336
commit
6c1489fc2f
@ -95,9 +95,8 @@ SimpleServer.prototype.listen = function(port) {
|
|||||||
if(username && password) {
|
if(username && password) {
|
||||||
// Check they match
|
// Check they match
|
||||||
if(self.checkCredentials(request,username,password) !== "ALLOWED") {
|
if(self.checkCredentials(request,username,password) !== "ALLOWED") {
|
||||||
response.setHeader("WWW-Authenticate", 'Basic realm="Admin Area"');
|
|
||||||
response.writeHead(401,"Authentication required",{
|
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();
|
response.end();
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user