Skip to content

Commit

Permalink
Update SOTT.php
Browse files Browse the repository at this point in the history
  • Loading branch information
indrasen715 committed Jun 16, 2022
1 parent 3a3b3a1 commit e848b5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LoginRadiusSDK/Utility/SOTT.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ public function encrypt($timeDifference = '', $getLRserverTime = false, $apiKey
{
$time=!empty($timeDifference)?$timeDifference:'10';

$apiKey=!empty($apiKey)?$apiKey:$this->_key;
$apiKey=!empty($apiKey)?$apiKey:Functions::getApiKey();

$apiSecret=!empty($apiSecret)?$apiSecret:$this->_secret;
$apiSecret=!empty($apiSecret)?$apiSecret:Functions::getApiSecret();

if ($getLRserverTime) {
$result = Functions::apiClient("/identity/v2/serverinfo", array("TimeDifference" => $time), array('output_format' => 'json'));
Expand Down

0 comments on commit e848b5f

Please sign in to comment.