DeleteUser now returns a UserDeleted response.

master
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 authd.logged_users.delete fd
end end
# TODO: better response Response::UserDeleted.new user_to_delete.uid
Response::User.new user_to_delete.to_public
end end
end end
AuthD.requests << Delete AuthD.requests << Delete

View File

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