diff --git a/packages/nocodb/src/services/users/users.service.ts b/packages/nocodb/src/services/users/users.service.ts index 0753329060..6d1305173b 100644 --- a/packages/nocodb/src/services/users/users.service.ts +++ b/packages/nocodb/src/services/users/users.service.ts @@ -32,7 +32,8 @@ import type { export class UsersService { constructor(private metaService: MetaService) {} - async findOne(email: string) { + async findOne(_email: string) { + const email = _email.toLowerCase(); const user = await this.metaService.metaGet(null, null, MetaTable.USERS, { email, }); @@ -50,7 +51,7 @@ export class UsersService { email: string; lastname: any; }) { - return this.metaService.metaInsert2(null, null, MetaTable.USERS, param); + return this.metaService.metaInsert2(null, null, MetaTable.USERS, { ...param, email: param.email?.toLowerCase() }); } async registerNewUserIfAllowed({