mirror of
https://github.com/open-webui/open-webui
synced 2025-02-23 05:38:41 +00:00
Added user filtering by email and username
Added user filtering by email and username
This commit is contained in:
parent
3f3a5bb0ab
commit
55b0ac85d1
@ -85,8 +85,9 @@
|
||||
return true;
|
||||
} else {
|
||||
let name = user.name.toLowerCase();
|
||||
let email = user.email.toLowerCase();
|
||||
const query = search.toLowerCase();
|
||||
return name.includes(query);
|
||||
return name.includes(query) || email.includes(query);
|
||||
}
|
||||
})
|
||||
.sort((a, b) => {
|
||||
|
Loading…
Reference in New Issue
Block a user