aboutsummaryrefslogtreecommitdiff
path: root/crates/secd/store/pg/sql/find_identity.sql
diff options
context:
space:
mode:
Diffstat (limited to 'crates/secd/store/pg/sql/find_identity.sql')
-rw-r--r--crates/secd/store/pg/sql/find_identity.sql2
1 files changed, 0 insertions, 2 deletions
diff --git a/crates/secd/store/pg/sql/find_identity.sql b/crates/secd/store/pg/sql/find_identity.sql
index 37105cb..41c8518 100644
--- a/crates/secd/store/pg/sql/find_identity.sql
+++ b/crates/secd/store/pg/sql/find_identity.sql
@@ -7,9 +7,7 @@ select distinct
from secd.identity i
left join secd.address_validation av using (identity_id)
left join secd.address a using (address_id)
-left join secd.session s using (identity_id)
where (($1::uuid is null) or (i.identity_public_id = $1))
and (($2::text is null) or (a.value = $2))
and (($3::bool is null) or (($3::bool is true) and (av.validated_at is not null)))
-and (($4::bytea is null) or (s.token_hash = $4))
and i.deleted_at is null;