mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Fix login ilike bug. Fixes #1920
This commit is contained in:
parent
712dabd16b
commit
4ce01f8bb4
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user