DeleteUser now returns a UserDeleted response.

This commit is contained in:
Philippe Pittoli 2023-06-14 18:39:36 +02:00
parent 00c202a63a
commit 2024325092
2 changed files with 8 additions and 2 deletions

View File

@ -27,8 +27,7 @@ class AuthD::Request
authd.logged_users.delete fd
end
# TODO: better response
Response::User.new user_to_delete.to_public
Response::UserDeleted.new user_to_delete.uid
end
end
AuthD.requests << Delete

View File

@ -40,4 +40,11 @@ class AuthD::Response
end
end
AuthD.responses << MatchingUsers
IPC::JSON.message UserDeleted, 12 do
property uid : Int32
def initialize(@uid)
end
end
AuthD.responses << UserDeleted
end