From 9bf063c7bd04a9476ebe051a5d2a86d250076613 Mon Sep 17 00:00:00 2001 From: Guillaume ARNOUX Date: Mon, 22 Jan 2024 15:56:43 +0100 Subject: [PATCH] generate username --- src/Mailcow.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Mailcow.php b/src/Mailcow.php index 51ea957..b592526 100644 --- a/src/Mailcow.php +++ b/src/Mailcow.php @@ -41,6 +41,16 @@ class Server_Manager_Mailcow extends Server_Manager ]; } + /** + * Override default username generator method + * + * @return string + */ + public function generateUsername($domainName) + { + return "adm_" . str_replace(".", "", $domainName); + } + /** * Returns link to account management page. *