Commit 2f055027 authored by nanahira's avatar nanahira

fix

parent d0b00d89
......@@ -3153,7 +3153,7 @@ if settings.modules.http
response.end(addCallback(u.query.callback, duellog))
else if u.pathname == '/api/getkeys' and settings.modules.vip.enabled
if !(u.query.pass == settings.modules.tournament_mode.password)
if !(u.query.pass == settings.modules.http.password)
response.writeHead(200)
response.end(addCallback(u.query.callback, "Unauthorized."))
return
......
......@@ -4046,7 +4046,7 @@
response.end(addCallback(u.query.callback, duellog));
}
} else if (u.pathname === '/api/getkeys' && settings.modules.vip.enabled) {
if (!(u.query.pass === settings.modules.tournament_mode.password)) {
if (!(u.query.pass === settings.modules.http.password)) {
response.writeHead(200);
response.end(addCallback(u.query.callback, "Unauthorized."));
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment