Merge pull request #2730 from thelounge/xpaw/auth-object

Make sure data is an object
This commit is contained in:
Pavel Djundik 2018-08-29 14:02:57 +03:00 committed by GitHub
commit 932be73b42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -619,6 +619,10 @@ function getServerConfiguration() {
}
function performAuthentication(data) {
if (typeof data !== "object") {
return;
}
const socket = this;
let client;
let token = null;