2023-07-12 01:00:05 +02:00
|
|
|
<div class="tab-pane fade in active show" id="tab-user-auth" role="tabpanel" aria-labelledby="tab-user-auth">
|
2022-07-01 10:44:21 +02:00
|
|
|
<div class="card mb-4">
|
2022-10-11 11:41:06 +02:00
|
|
|
<div class="card-header d-flex fs-5">
|
2022-07-01 10:44:21 +02:00
|
|
|
<button class="btn d-md-none flex-grow-1 text-start" data-bs-target="#collapse-tab-user-auth" data-bs-toggle="collapse" aria-controls="collapse-tab-user-auth">
|
|
|
|
{{ lang.user.mailbox_general }}
|
|
|
|
</button>
|
2023-07-12 01:00:05 +02:00
|
|
|
<span class="d-none d-md-block">{{ lang.user.mailbox_general }}</span>
|
2022-07-01 10:44:21 +02:00
|
|
|
</div>
|
|
|
|
<div id="collapse-tab-user-auth" class="card-body collapse" data-bs-parent="#user-content">
|
|
|
|
{% if mailboxdata.attributes.force_pw_update == '1' %}
|
|
|
|
<div class="alert alert-danger">{{ lang.user.force_pw_update|raw }}</div>
|
|
|
|
{% endif %}
|
2021-09-22 20:47:10 +02:00
|
|
|
{% if not skip_sogo %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="hidden-xs col-md-3 col-xs-5 text-right"></div>
|
|
|
|
<div class="col-md-3 col-xs-12">
|
2022-05-19 10:43:06 +02:00
|
|
|
{% if dual_login and allow_admin_email_login == 'n' or mailboxdata.attributes.force_pw_update == '1' %}
|
2022-06-28 07:21:26 +02:00
|
|
|
<button disabled class="btn btn-secondary btn-block btn-xs-lg">
|
2021-10-27 13:42:45 +02:00
|
|
|
<i class="bi bi-inbox-fill"></i> {{ lang.user.open_webmail_sso }}
|
|
|
|
</button>
|
|
|
|
{% else %}
|
2022-03-31 12:41:50 +02:00
|
|
|
<a target="_blank" href="/sogo-auth.php?login={{ mailcow_cc_username }}" role="button" class="btn btn-secondary btn-block btn-xs-lg">
|
2021-10-27 13:42:45 +02:00
|
|
|
<i class="bi bi-inbox-fill"></i> {{ lang.user.open_webmail_sso }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
2021-10-30 20:01:26 +02:00
|
|
|
<div class="row">
|
2022-04-01 08:02:11 +02:00
|
|
|
<div class="d-none d-sm-flex col-md-3 col-5 text-end"></div>
|
|
|
|
<div class="col-md-9 col-12">
|
2022-03-31 12:57:33 +02:00
|
|
|
<p class="text-muted text-muted-mt-0">{{ lang.user.direct_protocol_access|raw }}</p>
|
2022-07-01 10:44:21 +02:00
|
|
|
{% if mailboxdata.attributes.imap_access == 1 %}<div class="badge fs-6 bg-success mb-2">IMAP <i class="bi bi-check-lg"></i></div>{% else %}<div class="badge fs-6 bg-danger">IMAP <i class="bi bi-x-lg"></i></div>{% endif %}
|
|
|
|
{% if mailboxdata.attributes.smtp_access == 1 %}<div class="badge fs-6 bg-success mb-2">SMTP <i class="bi bi-check-lg"></i></div>{% else %}<div class="badge fs-6 bg-danger">SMTP <i class="bi bi-x-lg"></i></div>{% endif %}
|
|
|
|
{% if mailboxdata.attributes.sieve_access == 1 %}<div class="badge fs-6 bg-success mb-2">Sieve <i class="bi bi-check-lg"></i></div>{% else %}<div class="badge fs-6 bg-danger">Sieve <i class="bi bi-x-lg"></i></div>{% endif %}
|
|
|
|
{% if mailboxdata.attributes.pop3_access == 1 %}<div class="badge fs-6 bg-success mb-2">POP3 <i class="bi bi-check-lg"></i></div>{% else %}<div class="badge fs-6 bg-danger">POP3 <i class="bi bi-x-lg"></i></div>{% endif %}
|
|
|
|
{% if mailboxdata.attributes.sogo_access == 1 %}<div class="badge fs-6 bg-success mb-2">SOGo <i class="bi bi-check-lg"></i></div>{% else %}<div class="badge fs-6 bg-danger">SOGo <i class="bi bi-x-lg"></i></div>{% endif %}
|
2021-10-30 20:01:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
2021-09-22 20:47:10 +02:00
|
|
|
{% endif %}
|
|
|
|
<div class="row">
|
2022-04-01 08:02:11 +02:00
|
|
|
<div class="col-md-3 col-12 text-sm-end text-start mb-4">{{ lang.user.in_use }}:</div>
|
|
|
|
<div class="col-md-5 col-12">
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="progress">
|
2022-03-31 13:24:18 +02:00
|
|
|
<div class="progress-bar bg-{{ mailboxdata.percent_class }}" role="progressbar" aria-valuenow="{{ mailboxdata.percent_in_use }}" aria-valuemin="0" aria-valuemax="100" style="min-width:2em;width: {{ mailboxdata.percent_in_use }}%;">
|
2021-09-22 20:47:10 +02:00
|
|
|
{{ mailboxdata.percent_in_use }}%
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p>{{ mailboxdata.quota_used|formatBytes(2) }} / {% if mailboxdata.quota == 0 %}∞{% else %}{{ mailboxdata.quota|formatBytes(2) }}{% endif %}<br>{{ mailboxdata.messages }} {{ lang.user.messages }}</p>
|
|
|
|
<hr>
|
2022-03-30 13:04:54 +02:00
|
|
|
<p><a href="#pwChangeModal" data-bs-toggle="modal"><i class="bi bi-pencil-fill"></i> {{ lang.user.change_password }}</a></p>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
2022-03-07 11:41:13 +01:00
|
|
|
{# TFA #}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 col-xs-5 text-right">{{ lang.tfa.tfa }}:</div>
|
|
|
|
<div class="col-sm-9 col-xs-7">
|
|
|
|
<p id="tfa_pretty">{{ tfa_data.pretty }}</p>
|
|
|
|
{% include 'tfa_keys.twig' %}
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 col-xs-5 text-right">{{ lang.tfa.set_tfa }}:</div>
|
|
|
|
<div class="col-sm-9 col-xs-7">
|
2022-08-30 15:59:16 +02:00
|
|
|
<select data-style="btn btn-sm dropdown-toggle bs-placeholder btn-secondary" data-width="fit" id="selectTFA" class="selectpicker" title="{{ lang.tfa.select }}">
|
2022-03-07 11:41:13 +01:00
|
|
|
<option value="yubi_otp">{{ lang.tfa.yubi_otp }}</option>
|
|
|
|
<option value="webauthn">{{ lang.tfa.webauthn }}</option>
|
|
|
|
<option value="totp">{{ lang.tfa.totp }}</option>
|
|
|
|
<option value="none">{{ lang.tfa.none }}</option>
|
|
|
|
</select>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
{# FIDO2 #}
|
|
|
|
<div class="row">
|
2022-04-01 08:02:11 +02:00
|
|
|
<div class="col-sm-3 col-12 text-sm-end text-start">
|
2021-09-22 20:47:10 +02:00
|
|
|
<p><i class="bi bi-shield-fill-check"></i> {{ lang.fido2.fido2_auth }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2022-04-01 08:02:11 +02:00
|
|
|
<div class="col-sm-3 col-12 text-sm-end text-start mb-4">
|
2021-09-22 20:47:10 +02:00
|
|
|
{{ lang.fido2.known_ids }}:
|
|
|
|
</div>
|
2022-04-01 08:02:11 +02:00
|
|
|
<div class="col-sm-9 col-12">
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped table-hover table-condensed" id="fido2_keys">
|
|
|
|
<tr>
|
|
|
|
<th>ID</th>
|
|
|
|
<th style="min-width:240px;text-align: right">{{ lang.admin.action }}</th>
|
|
|
|
</tr>
|
|
|
|
{% include 'fido2.twig' %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2022-04-01 07:33:01 +02:00
|
|
|
<div class="offset-sm-3 col-sm-9">
|
2021-10-22 22:45:45 +02:00
|
|
|
<div class="btn-group nowrap">
|
2022-03-31 15:24:10 +02:00
|
|
|
<button class="btn btn-sm btn-primary d-block d-sm-inline" id="register-fido2">{{ lang.fido2.set_fido2 }}</button>
|
2022-03-31 10:09:25 +02:00
|
|
|
<button type="button" class="btn btn-sm btn-xs-lg btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></button>
|
2021-09-22 20:47:10 +02:00
|
|
|
<ul class="dropdown-menu">
|
2022-03-31 10:09:25 +02:00
|
|
|
<li><a class="dropdown-item" href="#" id="register-fido2-touchid"><i class="bi bi-apple"></i> {{ lang.fido2.set_fido2_touchid }}</a></li>
|
2021-09-22 20:47:10 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="row" id="status-fido2">
|
2022-04-01 08:02:11 +02:00
|
|
|
<div class="col-sm-3 col-5 text-end">{{ lang.fido2.register_status }}:</div>
|
|
|
|
<div class="col-sm-9 col-7">
|
2021-09-22 20:47:10 +02:00
|
|
|
<div id="fido2-alerts">-</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div class="row">
|
2022-04-01 08:02:11 +02:00
|
|
|
<div class="col-md-3 col-12 text-sm-end text-start mb-4"><i class="bi bi-file-earmark-text"></i> {{ lang.user.apple_connection_profile }}:</div>
|
|
|
|
<div class="col-md-9 col-12">
|
2021-09-22 20:47:10 +02:00
|
|
|
<p><i class="bi bi-file-earmark-post"></i> <a href="/mobileconfig.php?only_email">{{ lang.user.email }}</a> <small>IMAP, SMTP</small></p>
|
2022-03-31 12:57:33 +02:00
|
|
|
<p class="text-muted">{{ lang.user.apple_connection_profile_mailonly }}</p>
|
2021-09-22 20:47:10 +02:00
|
|
|
{% if not skip_sogo %}
|
|
|
|
<p><i class="bi bi-file-earmark-post"></i> <a href="/mobileconfig.php">{{ lang.user.email_and_dav }}</a> <small>IMAP, SMTP, Cal/CardDAV</small></p>
|
2022-03-31 12:57:33 +02:00
|
|
|
<p class="text-muted">{{ lang.user.apple_connection_profile_complete }}</p>
|
2021-09-22 20:47:10 +02:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-14 20:09:39 +01:00
|
|
|
<div class="row">
|
2021-11-26 23:21:14 +01:00
|
|
|
<div class="col-md-3 col-12 text-sm-end text-start mb-4"><i class="bi bi-file-earmark-text"></i> {{ lang.user.apple_connection_profile }}<br class="d-none d-lg-block" />{{ lang.user.with_app_password }}:</div>
|
2022-04-01 08:02:11 +02:00
|
|
|
<div class="col-md-9 col-12">
|
2021-11-14 20:09:39 +01:00
|
|
|
<p><i class="bi bi-file-earmark-post"></i> <a href="/mobileconfig.php?only_email&app_password">{{ lang.user.email }}</a> <small>IMAP, SMTP</small></p>
|
2021-11-26 23:21:14 +01:00
|
|
|
<p class="text-muted">{{ lang.user.apple_connection_profile_mailonly }}<br /> {{ lang.user.apple_connection_profile_with_app_password }}</p>
|
2021-11-14 20:09:39 +01:00
|
|
|
{% if not skip_sogo %}
|
|
|
|
<p><i class="bi bi-file-earmark-post"></i> <a href="/mobileconfig.php?app_password">{{ lang.user.email_and_dav }}</a> <small>IMAP, SMTP, Cal/CardDAV</small></p>
|
2021-11-26 23:21:14 +01:00
|
|
|
<p class="text-muted">{{ lang.user.apple_connection_profile_complete }}<br /> {{ lang.user.apple_connection_profile_with_app_password }}</p>
|
2021-11-14 20:09:39 +01:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-09-22 20:47:10 +02:00
|
|
|
<hr>
|
|
|
|
<div class="row">
|
2022-06-15 16:34:49 +02:00
|
|
|
<div class="offset-sm-3 col-sm-9">
|
2023-09-27 18:34:53 +02:00
|
|
|
<p><a target="_blank" href="https://docs.mailcow.email/client/client/#{{ clientconfigstr }}">[{{ lang.user.client_configuration }}]</a></p>
|
2022-03-30 13:04:54 +02:00
|
|
|
<p><a href="#userFilterModal" data-bs-toggle="modal">[{{ lang.user.show_sieve_filters }}]</a></p>
|
2021-09-22 20:47:10 +02:00
|
|
|
<hr>
|
2022-10-11 11:41:06 +02:00
|
|
|
<h4 class="recent-login-success">{{ lang.user.recent_successful_connections }}</h4>
|
|
|
|
<div class="dropdown mt-2">
|
2022-03-31 12:41:50 +02:00
|
|
|
<button class="btn btn-secondary btn-xs btn-xs-lg dropdown-toggle" type="button" id="history_sasl_days" data-bs-toggle="dropdown">{{ lang.user.login_history }}</button>
|
2021-09-22 20:47:10 +02:00
|
|
|
<ul class="dropdown-menu">
|
2022-03-31 10:09:25 +02:00
|
|
|
<li class="login-history" data-days="1"><a class="dropdown-item" href="#">1 {{ lang.user.day }}</a></li>
|
|
|
|
<li class="login-history" data-days="7"><a class="dropdown-item active" href="#">1 {{ lang.user.week }}</a></li>
|
|
|
|
<li class="login-history" data-days="14"><a class="dropdown-item" href="#">2 {{ lang.user.weeks }}</a></li>
|
|
|
|
<li class="login-history" data-days="31"><a class="dropdown-item" href="#">1 {{ lang.user.month }}</a></li>
|
2021-09-22 20:47:10 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
2022-10-11 11:41:06 +02:00
|
|
|
<div class="last-login mt-4"></div>
|
|
|
|
<span class="clear-last-logins mt-2">
|
2021-09-22 20:47:10 +02:00
|
|
|
{{ lang.user.clear_recent_successful_connections }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|