libipc API updates.
parent
a31bd4c940
commit
96134ba876
12
src/authd.cr
12
src/authd.cr
|
@ -80,7 +80,7 @@ module AuthD
|
||||||
|
|
||||||
response = read
|
response = read
|
||||||
|
|
||||||
if response.user_type == ResponseTypes::Ok.value.to_u8
|
if response.type == ResponseTypes::Ok.value.to_u8
|
||||||
response.payload
|
response.payload
|
||||||
else
|
else
|
||||||
nil
|
nil
|
||||||
|
@ -95,7 +95,7 @@ module AuthD
|
||||||
|
|
||||||
response = read
|
response = read
|
||||||
|
|
||||||
if response.user_type == ResponseTypes::Ok.value.to_u8
|
if response.type == ResponseTypes::Ok.value.to_u8
|
||||||
User.from_json response.payload
|
User.from_json response.payload
|
||||||
else
|
else
|
||||||
nil
|
nil
|
||||||
|
@ -107,7 +107,7 @@ module AuthD
|
||||||
|
|
||||||
response = read
|
response = read
|
||||||
|
|
||||||
if response.user_type == ResponseTypes::Ok.value.to_u8
|
if response.type == ResponseTypes::Ok.value.to_u8
|
||||||
User.from_json response.payload
|
User.from_json response.payload
|
||||||
else
|
else
|
||||||
nil
|
nil
|
||||||
|
@ -135,8 +135,8 @@ module AuthD
|
||||||
|
|
||||||
response = read
|
response = read
|
||||||
|
|
||||||
pp! response.user_type
|
pp! response.type
|
||||||
case ResponseTypes.new response.user_type.to_i
|
case ResponseTypes.new response.type.to_i
|
||||||
when ResponseTypes::Ok
|
when ResponseTypes::Ok
|
||||||
AuthD::User.from_json response.payload
|
AuthD::User.from_json response.payload
|
||||||
else
|
else
|
||||||
|
@ -160,7 +160,7 @@ module AuthD
|
||||||
|
|
||||||
response = read
|
response = read
|
||||||
|
|
||||||
case ResponseTypes.new response.user_type.to_i
|
case ResponseTypes.new response.type.to_i
|
||||||
when ResponseTypes::Ok
|
when ResponseTypes::Ok
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue