Merge pull request #134 from SyncrowIOT/fix/otp-wrong

otp fix
This commit is contained in:
yousef-khriasat-uba
2024-10-31 09:35:16 +03:00
committed by GitHub

View File

@ -237,7 +237,7 @@ export class UserAuthService {
fromNewPassword: boolean = false,
): Promise<boolean> {
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) {