mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-28 20:23:26 +00:00
[Web] Rework API keys: multiple read-only/read-write keys, service keys from mailcow.conf
This commit is contained in:
21 files changed
+942
-335
No files matched your search
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user