NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Commit

[Web] remove keycloak sync disabled warning

3d486678
FreddleSpl0it <[email protected]> 3 years ago
data/conf/phpfpm/crons/keycloak-sync.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Diff

diff --git a/data/conf/phpfpm/crons/keycloak-sync.php b/data/conf/phpfpm/crons/keycloak-sync.php
index f401f0ae..baeec21d 100644
--- a/data/conf/phpfpm/crons/keycloak-sync.php
+++ b/data/conf/phpfpm/crons/keycloak-sync.php
@@ -73,7 +73,6 @@ $_SESSION['acl']['mailbox_relayhost'] = "1";
 $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;
 }
@@ -91,7 +90,7 @@ if (file_exists($lock_file)) {
     $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;
     }