Werk #15927: Fix copy of random secret to clipboard

Component Setup
Title Fix copy of random secret to clipboard
Date Jul 24, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p8 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

In some environments, the button "Create random secret and copy secret to clipboard" of the option "Automation secret for machine accounts" on the users page did not copy the secret to the clipboard.

We now use a fallback mechanism if the standard fails. If even the fallback fails you will see a dialog were you can copy the secret manually.

To the list of all Werks