Merge pull request #2730 from thelounge/xpaw/auth-object
Make sure data is an object
This commit is contained in:
commit
932be73b42
@ -619,6 +619,10 @@ function getServerConfiguration() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function performAuthentication(data) {
|
function performAuthentication(data) {
|
||||||
|
if (typeof data !== "object") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const socket = this;
|
const socket = this;
|
||||||
let client;
|
let client;
|
||||||
let token = null;
|
let token = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user