From 96134ba876aa1955bb3c48d390145c4e51dfea26 Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Wed, 5 Jun 2019 22:38:08 +0200 Subject: [PATCH] libipc API updates. --- src/authd.cr | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/authd.cr b/src/authd.cr index bd5648d..fa978e3 100644 --- a/src/authd.cr +++ b/src/authd.cr @@ -80,7 +80,7 @@ module AuthD response = read - if response.user_type == ResponseTypes::Ok.value.to_u8 + if response.type == ResponseTypes::Ok.value.to_u8 response.payload else nil @@ -95,7 +95,7 @@ module AuthD response = read - if response.user_type == ResponseTypes::Ok.value.to_u8 + if response.type == ResponseTypes::Ok.value.to_u8 User.from_json response.payload else nil @@ -107,7 +107,7 @@ module AuthD response = read - if response.user_type == ResponseTypes::Ok.value.to_u8 + if response.type == ResponseTypes::Ok.value.to_u8 User.from_json response.payload else nil @@ -135,8 +135,8 @@ module AuthD response = read - pp! response.user_type - case ResponseTypes.new response.user_type.to_i + pp! response.type + case ResponseTypes.new response.type.to_i when ResponseTypes::Ok AuthD::User.from_json response.payload else @@ -160,7 +160,7 @@ module AuthD response = read - case ResponseTypes.new response.user_type.to_i + case ResponseTypes.new response.type.to_i when ResponseTypes::Ok true else