Skip to content

Commit

Permalink
Fix login ilike bug. Fixes #1920
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed Nov 19, 2021
1 parent 712dabd commit 4ce01f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/db_views/src/local_user_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4ce01f8

Please sign in to comment.