From ea834f900761dd0b3a66430d539290bd40df75ba Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 12 Jun 2023 14:47:04 +0530 Subject: [PATCH] fix: convert email to lowercase before insertion Signed-off-by: Pranav C --- packages/nocodb/src/services/users/users.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/services/users/users.service.ts b/packages/nocodb/src/services/users/users.service.ts index f76415708b..6d1305173b 100644 --- a/packages/nocodb/src/services/users/users.service.ts +++ b/packages/nocodb/src/services/users/users.service.ts @@ -51,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({