more optimizations, remove WTVIRC for now, upgrade test.js
This commit is contained in:
@@ -12,7 +12,7 @@ if (auth === true) {
|
||||
const show_box_was_unregistered = false;
|
||||
if (request_headers.Authorization) {
|
||||
const authheader = request_headers.Authorization.split(' ');
|
||||
if (authheader[0] == "Basic") {
|
||||
if (authheader[0] === "Basic") {
|
||||
password = Buffer.from(authheader[1], 'base64').toString();
|
||||
if (password) password = password.split(':')[1];
|
||||
}
|
||||
@@ -22,7 +22,7 @@ if (auth === true) {
|
||||
|
||||
user_info = wtva.getAccountInfo(request_headers.query.username.toLowerCase()); // username search
|
||||
if (user_info) {
|
||||
if (user_info.ssid == socket.ssid) {
|
||||
if (user_info.ssid === socket.ssid) {
|
||||
show_cannot_modify_self = true;
|
||||
}
|
||||
if (request_headers.query.confirm_delete) {
|
||||
|
||||
Reference in New Issue
Block a user