Skip to content

Commit

Permalink
[update] remove acct_group_id from required fields
Browse files Browse the repository at this point in the history
  • Loading branch information
gaalferov committed Apr 4, 2021
1 parent 4428cd1 commit 187313f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/VPNClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,13 @@ public function updateAccount(
int $acctGroupId = null
): bool {
$data = [
"acct_status_id" => $accountStatus,
"acct_group_id" => $acctGroupId ?? $this->defaultGroupId,
'acct_status_id' => $accountStatus
];

if (null !== $acctGroupId) {
$data['acct_group_id'] = $acctGroupId ?? $this->defaultGroupId;
}

if (null !== $password) {
$data['cust_password'] = $password;
}
Expand Down

0 comments on commit 187313f

Please sign in to comment.