feat: implement module otp verification
parent
ee52a35af2
commit
798476aaf5
|
@ -91,7 +91,7 @@ export class OtpVerificationService {
|
|||
}
|
||||
|
||||
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();
|
||||
|
||||
if (!target_id && !reference) {
|
||||
|
@ -107,6 +107,7 @@ export class OtpVerificationService {
|
|||
otp_code,
|
||||
action_type,
|
||||
target_id,
|
||||
source,
|
||||
is_used: false,
|
||||
is_replaced: false,
|
||||
},
|
||||
|
@ -114,6 +115,7 @@ export class OtpVerificationService {
|
|||
otp_code,
|
||||
action_type,
|
||||
reference,
|
||||
source,
|
||||
is_used: false,
|
||||
is_replaced: false,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue