Lowercase email search on UI to match lowercase email index in DB. Closes #1464.

This commit is contained in:
Kailash Nadh 2023-08-27 12:17:50 +05:30
parent 07a9632860
commit 6af904dbd4

View file

@ -331,9 +331,9 @@ export default Vue.extend({
this.queryParams.page = 1;
if (this.$utils.validateEmail(q)) {
this.queryParams.queryExp = `email = '${q}'`;
this.queryParams.queryExp = `email = '${q.toLowerCase()}'`;
} else {
this.queryParams.queryExp = `(name ~* '${q}' OR email ~* '${q}')`;
this.queryParams.queryExp = `(name ~* '${q}' OR email ~* '${q.toLowerCase()}')`;
}
},