This commit is contained in:
unknown
2024-10-31 09:14:18 +03:00
parent 7efbe8a1bb
commit 019e777f60

View File

@ -237,7 +237,7 @@ export class UserAuthService {
fromNewPassword: boolean = false, fromNewPassword: boolean = false,
): Promise<boolean> { ): Promise<boolean> {
const otp = await this.otpRepository.findOne({ const otp = await this.otpRepository.findOne({
where: { email: data.email, type: data.type }, where: { email: data.email, type: data.type, otpCode: data.otpCode },
}); });
if (!otp) { if (!otp) {