]> Untitled Git - lemmy.git/commitdiff
Fix login ilike bug. Fixes #1920
authorDessalines <tyhou13@gmx.com>
Fri, 19 Nov 2021 01:58:11 +0000 (20:58 -0500)
committerDessalines <tyhou13@gmx.com>
Fri, 19 Nov 2021 01:58:11 +0000 (20:58 -0500)
crates/db_views/src/local_user_view.rs

index f697aba65792e1606ea675752796ddea6d42d62b..23e81d3651eb66c720da32a9cc0c62057d944430 100644 (file)
@@ -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,