Compare commits

...

2 Commits

Author SHA1 Message Date
FreddleSpl0it
e307ba8a5f
[Web] change logMsg danger to err in crontasks 2024-01-09 15:55:23 +01:00
FreddleSpl0it
c7c70f8511
[Web] idp small layout fix 2024-01-09 15:49:37 +01:00
4 changed files with 7 additions and 7 deletions

View File

@ -18,7 +18,7 @@ try {
$pdo = new PDO($dsn, $database_user, $database_pass, $opt);
}
catch (PDOException $e) {
logMsg("danger", $e->getMessage());
logMsg("err", $e->getMessage());
session_destroy();
exit;
}
@ -127,18 +127,18 @@ while (true) {
curl_close($ch);
if ($code != 200){
logMsg("danger", "Recieved HTTP {$code}");
logMsg("err", "Recieved HTTP {$code}");
session_destroy();
exit;
}
try {
$response = json_decode($response, true);
} catch (Exception $e) {
logMsg("danger", $e->getMessage());
logMsg("err", $e->getMessage());
break;
}
if (!is_array($response)){
logMsg("danger", "Recieved malformed response from keycloak api");
logMsg("err", "Recieved malformed response from keycloak api");
break;
}
if (count($response) == 0) {

View File

@ -18,7 +18,7 @@ try {
$pdo = new PDO($dsn, $database_user, $database_pass, $opt);
}
catch (PDOException $e) {
logMsg("danger", $e->getMessage());
logMsg("err", $e->getMessage());
session_destroy();
exit;
}

View File

@ -217,7 +217,7 @@
"iam_client_id": "Client ID",
"iam_client_secret": "Client Secret",
"iam_client_scopes": "Client Scopes",
"iam_description": "Configure an external OIDC Provider for Authentication<br>User's mailboxes will be automatically created upon their first login, provided that an attribute mapping has been set.",
"iam_description": "Configure an external Provider for Authentication<br>User's mailboxes will be automatically created upon their first login, provided that an attribute mapping has been set.",
"iam_extra_permission": "For the following settings to work, the mailcow client in Keycloak needs a <code>Service account</code> and the permission to <code>view-users</code>.",
"iam_host": "Host",
"iam_import_users": "Import Users",

View File

@ -287,7 +287,7 @@
</div>
</form>
</div>
<div id="ldap_settings" class="{% if not iam_settings.authsource and iam_settings.authsource != 'ldap' %}d-none{% endif %}">
<div id="ldap_settings" class="{% if not iam_settings.authsource or iam_settings.authsource != 'ldap' %}d-none{% endif %}">
<form class="form-horizontal" autocapitalize="none" data-id="iam_ldap" autocorrect="off" role="form" method="post">
<input type="hidden" name="authsource" value="ldap">
<div class="row mb-2">