Skip to content

Commit

Permalink
[Web] remove keycloak sync disabled warning
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddleSpl0it authored and DerLinkman committed Feb 8, 2024
1 parent 04e2494 commit 3d48667
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions data/conf/phpfpm/crons/keycloak-sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ function logMsg($priority, $message, $task = "Keycloak Sync") {
$iam_provider = identity_provider('init');
$iam_settings = identity_provider('get');
if (intval($iam_settings['periodic_sync']) != 1 && $iam_settings['import_users'] != 1) {
logMsg("warning", "IAM Sync is disabled");
session_destroy();
exit;
}
Expand All @@ -91,7 +90,7 @@ function logMsg($priority, $message, $task = "Keycloak Sync") {
$last_execution = $lock_file_parts[1];
$elapsed_time = (time() - $last_execution) / 60;
if ($elapsed_time < intval($iam_settings['sync_interval'])) {
logMsg("warning", "Sync Interval not ready (".number_format((float)$elapsed_time, 2, '.', '')."min / ".$iam_settings['sync_interval']."min)");
logMsg("warning", "Sync not ready (".number_format((float)$elapsed_time, 2, '.', '')."min / ".$iam_settings['sync_interval']."min)");
session_destroy();
exit;
}
Expand Down

0 comments on commit 3d48667

Please sign in to comment.