Fix user creation for service
This commit is contained in:
parent
2650833a9b
commit
a0a7bd4c10
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Reference in a new issue