Browse Source

fix: convert email to lowercase before insertion

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5868/head
Pranav C 1 year ago
parent
commit
ea834f9007
  1. 2
      packages/nocodb/src/services/users/users.service.ts

2
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({

Loading…
Cancel
Save