1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-02-11 15:01:37 +00:00

Add generate_app_passwd function and update mobileconfig.php to use it

Co-authored-by: DerLinkman <62480600+DerLinkman@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-12 11:42:54 +00:00
parent 0221c4ccf2
commit c5906dfb2f
2 changed files with 55 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ if (isset($_GET['app_password'])) {
else
$platform = $_SERVER['HTTP_USER_AGENT'];
$password = bin2hex(openssl_random_pseudo_bytes(16));
$password = generate_app_passwd();
$attr = array(
'app_name' => $platform,
'app_passwd' => $password,