From: Dessalines Date: Fri, 19 Nov 2021 01:58:11 +0000 (-0500) Subject: Fix login ilike bug. Fixes #1920 X-Git-Url: http://these/git/readmes/%7B%60%24%7BarchiveTodayUrl%7D/static/%7BpictrsAvatarThumbnail%28user.avatar%29%7D?a=commitdiff_plain;h=4ce01f8bb4b5ac230447734d1e8dfdc51d9c8b91;p=lemmy.git Fix login ilike bug. Fixes #1920 --- 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,