Skip to content

Commit

Permalink
fix(integriti_hid_virtual_pass): login_name sometimes empty
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Feb 10, 2025
1 parent 1869c11 commit 32152fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/inner_range/integriti_hid_virtual_pass.cr
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class InnerRange::Integriti < PlaceOS::Driver
raise "current user not known in this context" unless user_id
id = user_id.as(String)
user = staff_api.user(id).get
(user["login_name"]? || user["email"]).as_s.downcase
(user["login_name"]?.presence || user["email"]).as_s.downcase
end

protected def get_integriti_id : String
Expand Down

0 comments on commit 32152fd

Please sign in to comment.