Skip to content

Commit

Permalink
new login generation mode: PRFXCONTRACT
Browse files Browse the repository at this point in the history
  • Loading branch information
nightflyza committed Sep 2, 2024
1 parent 13aaaac commit a277ea3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.8 rev 9183
1.4.8 rev 9184
19 changes: 19 additions & 0 deletions api/vendor/login_generators/PRFXCONTRACT
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
$contractProposal ='';
if (empty($olddata)) {
$allcontracts = zb_UserGetAllContracts();
$top_offset = 100000;
//contract generation mode default
if ($this->altCfg['CONTRACT_GENERATION_DEFAULT']) {
for ($i = 1; $i < $top_offset; $i++) {
if (!isset($allcontracts[$i])) {
$contractProposal = $i;
break;
}
}
} else {
//alternate generation method
$max_contract = max(array_keys($allcontracts));
$contractProposal = $max_contract + 1;
}
}
$this->loginProposal = $this->sharedPrefix.$contractProposal;

0 comments on commit a277ea3

Please sign in to comment.