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