feat: implement module otp verification

pull/144/head
Firman Ramdhani 2025-06-04 20:15:24 +07:00
parent ee52a35af2
commit 798476aaf5
1 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,7 @@ export class OtpVerificationService {
} }
async verifyOTP(payload: OtpVerifyEntity) { async verifyOTP(payload: OtpVerifyEntity) {
const { otp_code, action_type, target_id, reference } = payload; const { otp_code, action_type, target_id, reference, source } = payload;
const dateNow = this.generateTimestamp(); const dateNow = this.generateTimestamp();
if (!target_id && !reference) { if (!target_id && !reference) {
@ -107,6 +107,7 @@ export class OtpVerificationService {
otp_code, otp_code,
action_type, action_type,
target_id, target_id,
source,
is_used: false, is_used: false,
is_replaced: false, is_replaced: false,
}, },
@ -114,6 +115,7 @@ export class OtpVerificationService {
otp_code, otp_code,
action_type, action_type,
reference, reference,
source,
is_used: false, is_used: false,
is_replaced: false, is_replaced: false,
}, },