mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-30 12:22:30 +02:00
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) {
|
||||
if (typeof data !== "object") {
|
||||
return;
|
||||
}
|
||||
|
||||
const socket = this;
|
||||
let client;
|
||||
let token = null;
|
||||
|
|
Loading…
Reference in a new issue