feat: ignore case for email (#5754)

fix #5738
This commit is contained in:
DarkSky
2024-02-01 05:05:16 +00:00
parent 349f7c3f15
commit 1db8019292
5 changed files with 46 additions and 18 deletions

View File

@@ -50,7 +50,10 @@ export class FeatureManagementService {
async isEarlyAccessUser(email: string) {
const user = await this.prisma.user.findFirst({
where: {
email,
email: {
equals: email,
mode: 'insensitive',
},
},
});
if (user) {