From ab6d5cefbea1e8ddf41f385dd85918f651958287 Mon Sep 17 00:00:00 2001
From: benj <benj@rse8.com>
Date: Mon, 19 Jun 2023 17:18:21 -0700
Subject: hack to allow impersonator to impersonate target

---
 crates/secd/store/sqlite/sql/find_credential.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'crates/secd/store/sqlite/sql/find_credential.sql')

diff --git a/crates/secd/store/sqlite/sql/find_credential.sql b/crates/secd/store/sqlite/sql/find_credential.sql
index 9062914..0590dee 100644
--- a/crates/secd/store/sqlite/sql/find_credential.sql
+++ b/crates/secd/store/sqlite/sql/find_credential.sql
@@ -9,4 +9,4 @@ join identity   i using (identity_id)
 where (($1 is null) or (c.credential_public_id = $1))
 and (($2 is null) or (i.identity_public_id = $2))
 and (($3 is null) or (c.type = $3))
-and (($3 is null or $4 is null) or (c.data->$3->>'key' = $4))
+and (($3 is null or $4 is null) or (c.partial_key = $4))
-- 
cgit v1.2.3

