Archived
1
0
Fork 0

Fix user creation for service

This commit is contained in:
Ethanell 2020-05-30 19:01:33 +02:00
parent 2650833a9b
commit a0a7bd4c10

View file

@ -59,9 +59,8 @@ socket.on("list user", data => {
}); });
}); });
socket.on("add user", data => { socket.on("add user", () => {
alert("User creation fail !"); next();
addUser(data);
}); });
socket.on("set service", () => { socket.on("set service", () => {
@ -71,6 +70,7 @@ socket.on("set service", () => {
socket.on("fail add user", data => { socket.on("fail add user", data => {
alert("User creation fail !"); alert("User creation fail !");
if (data && data.username)
addUser(data); addUser(data);
}); });