[Web] Rework API keys: multiple read-only/read-write keys, service keys from mailcow.conf

This commit is contained in:
FreddleSpl0it committed 2026-10-23 11:20:17 +02:00
1 parent c145f858e2
commit 0dadf49934
21 files changed
+942 -335

No files matched your search

+9
View File
@@ -23,6 +23,15 @@ $(document).ready(function() {
if ($("form[data-id='editalias'] .goto_checkbox:checked").length > 0) {
$('#textarea_alias_goto').prop('disabled', true);
}
// API key
$(".api-skip-ip-check").change(function() {
$($(this).data('target')).prop('disabled', this.checked);
});
$(".api-key-copy").click(function() {
navigator.clipboard.writeText($(this).attr('data-key'));
mailcow_alert_box(lang_admin.copy_to_clipboard, 'success');
});
$(".api-key-regen").click(function() { return confirm(lang_admin.ays); });
$("#mailbox-password-warning-close").click(function( event ) {
$('#mailbox-passwd-hidden-info').addClass('hidden');