feat: implement module otp verification
parent
ee52a35af2
commit
798476aaf5
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue