Skip to content

Commit

Permalink
MOSIP-39646 resolved transaction Id to generate (#802)
Browse files Browse the repository at this point in the history
Signed-off-by: MadhuMosip <madhu@mosip.io>
  • Loading branch information
MadhuMosip authored Feb 20, 2025
1 parent 7651959 commit e884b82
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,21 +213,13 @@ export class RevokevidComponent implements OnInit, OnDestroy {
}

generateVID(vidType: any) {
this.isLoading = true;
let transactionID = window.crypto.getRandomValues(new Uint32Array(1)).toString();
if (transactionID.length < 10) {
let diffrence = 10 - transactionID.length;
for(let i=0; i < diffrence; i++){
transactionID = transactionID + i
}
}
this.isLoading = true;
let self = this;
const request = {
"id": this.appConfigService.getConfig()["resident.vid.id.generate"],
"version": this.appConfigService.getConfig()["resident.vid.version.new"],
"requesttime": Utils.getCurrentDate(),
"request": {
"transactionID": transactionID,
"vidType": vidType,
"channels": ["PHONE", "EMAIL"]
}
Expand Down

0 comments on commit e884b82

Please sign in to comment.