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