mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 23:14:53 +00:00
otp fix
This commit is contained in:
@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user