From 181ac8de21769e5afe091b8a3d5007cf33e91669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=82=E3=82=8F=E3=82=8F=E3=82=8F=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Sat, 21 Dec 2024 23:17:44 +0900 Subject: [PATCH] emailVerified --- .../src/server/api/endpoints/users/get-security-info.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/users/get-security-info.ts b/packages/backend/src/server/api/endpoints/users/get-security-info.ts index 1762087ed0c6..2ec5385db432 100644 --- a/packages/backend/src/server/api/endpoints/users/get-security-info.ts +++ b/packages/backend/src/server/api/endpoints/users/get-security-info.ts @@ -46,7 +46,10 @@ export default class extends Endpoint { // eslint- private userSecurityKeysRepository: UserSecurityKeysRepository, ) { super(meta, paramDef, async (ps, me) => { - const profile = await this.userProfilesRepository.findOneBy({ email: ps.email }); + const profile = await this.userProfilesRepository.findOneBy({ + email: ps.email, + emailVerified: true, + }); const passwordMatched = await bcrypt.compare(ps.password, profile?.password ?? ''); if (!profile || !passwordMatched) {