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 => {
alert("User creation fail !");
addUser(data);
socket.on("add user", () => {
next();
});
socket.on("set service", () => {
@ -71,7 +70,8 @@ socket.on("set service", () => {
socket.on("fail add user", data => {
alert("User creation fail !");
addUser(data);
if (data && data.username)
addUser(data);
});
socket.on("internal error", () => {