Lowercase email search on UI to match lowercase email index in DB. Closes #1464.
This commit is contained in:
parent
07a9632860
commit
6af904dbd4
1 changed files with 2 additions and 2 deletions
|
@ -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()}')`;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue