DeleteUser now returns a UserDeleted response.
parent
00c202a63a
commit
2024325092
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue