mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-01-10 04:18:10 +02:00
[Web] remove sso login alertbox
This commit is contained in:
parent
593e581cf3
commit
1ab1505c88
@ -29,8 +29,7 @@ $template_data = [
|
|||||||
'oauth2_request' => @$_SESSION['oauth2_request'],
|
'oauth2_request' => @$_SESSION['oauth2_request'],
|
||||||
'is_mobileconfig' => str_contains($_SESSION['index_query_string'], 'mobileconfig'),
|
'is_mobileconfig' => str_contains($_SESSION['index_query_string'], 'mobileconfig'),
|
||||||
'login_delay' => @$_SESSION['ldelay'],
|
'login_delay' => @$_SESSION['ldelay'],
|
||||||
'has_keycloak_sso' => ($keycloak_provider) ? true : false,
|
'has_iam_sso' => ($iam_provider) ? true : false
|
||||||
'invalid_keycloak_sso' => $_SESSION['invalid_keycloak_sso']
|
|
||||||
];
|
];
|
||||||
|
|
||||||
$js_minifier->add('/web/js/site/index.js');
|
$js_minifier->add('/web/js/site/index.js');
|
||||||
|
@ -26,13 +26,6 @@
|
|||||||
<div class="my-4 alert alert-info ">{{ lang.login.mobileconfig_info }}</div>
|
<div class="my-4 alert alert-info ">{{ lang.login.mobileconfig_info }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<form method="post" autofill="off">
|
<form method="post" autofill="off">
|
||||||
{% if invalid_keycloak_sso %}
|
|
||||||
<div class="d-flex mt-3 w-100">
|
|
||||||
<div class="alert alert-danger w-100" role="alert">
|
|
||||||
{{ lang.danger.iam_invalid_sso}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
<div class="d-flex mt-3">
|
<div class="d-flex mt-3">
|
||||||
<label class="visually-hidden" for="login_user">{{ lang.login.username }}</label>
|
<label class="visually-hidden" for="login_user">{{ lang.login.username }}</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
@ -53,8 +46,8 @@
|
|||||||
<button type="button" class="btn btn-xs-lg btn-success dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></button>
|
<button type="button" class="btn btn-xs-lg btn-success dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a class="dropdown-item" href="#" id="fido2-login"><i class="bi bi-shield-fill-check"></i> {{ lang.login.fido2_webauthn }}</a></li>
|
<li><a class="dropdown-item" href="#" id="fido2-login"><i class="bi bi-shield-fill-check"></i> {{ lang.login.fido2_webauthn }}</a></li>
|
||||||
{% if has_keycloak_sso %}
|
{% if has_iam_sso %}
|
||||||
<li><a class="dropdown-item" href="/?keycloak_sso=1"><i class="bi bi-cloud-arrow-up-fill"></i> {{ lang.admin.iam_sso }}</a></li>
|
<li><a class="dropdown-item" href="/?iam_sso=1"><i class="bi bi-cloud-arrow-up-fill"></i> {{ lang.admin.iam_sso }}</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user