mirror of
https://github.com/open-webui/open-webui
synced 2025-02-23 21:53:37 +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;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
let name = user.name.toLowerCase();
|
let name = user.name.toLowerCase();
|
||||||
|
let email = user.email.toLowerCase();
|
||||||
const query = search.toLowerCase();
|
const query = search.toLowerCase();
|
||||||
return name.includes(query);
|
return name.includes(query) || email.includes(query);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.sort((a, b) => {
|
.sort((a, b) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user