From 4ce01f8bb4b5ac230447734d1e8dfdc51d9c8b91 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 18 Nov 2021 20:58:11 -0500 Subject: [PATCH] Fix login ilike bug. Fixes #1920 --- crates/db_views/src/local_user_view.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/db_views/src/local_user_view.rs b/crates/db_views/src/local_user_view.rs index f697aba6..23e81d36 100644 --- a/crates/db_views/src/local_user_view.rs +++ b/crates/db_views/src/local_user_view.rs @@ -82,8 +82,8 @@ impl LocalUserView { .inner_join(person_aggregates::table.on(person::id.eq(person_aggregates::person_id))) .filter( person::name - .ilike(name_or_email) - .or(local_user::email.ilike(name_or_email)), + .eq(name_or_email) + .or(local_user::email.eq(name_or_email)), ) .select(( local_user::all_columns, -- 2.44.1