diff --git a/packages/nocodb/src/services/auth.service.ts b/packages/nocodb/src/services/auth.service.ts index 287cb16391..9771d36b5c 100644 --- a/packages/nocodb/src/services/auth.service.ts +++ b/packages/nocodb/src/services/auth.service.ts @@ -13,7 +13,9 @@ import type { CreateUserDto } from '../controllers/auth.controller'; export class AuthService { constructor(private usersService: UsersService) {} - async validateUser(email: string, pass: string): Promise { + async validateUser(_email: string, pass: string): Promise { + const email = _email.toLowerCase(); + const user = await this.usersService.findOne(email); if (user) { const { password, salt, ...result } = user;