From 0f1c5506e27e9f063aafc0f14a84e79d9127e56c Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Tue, 8 Oct 2019 12:04:10 +0200 Subject: [PATCH] do not create username@domain ftp user if the default-ftp-user is being created in Ftps.add, fixes #720 Signed-off-by: Michael Kaufmann --- lib/Froxlor/Api/Commands/Ftps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Froxlor/Api/Commands/Ftps.php b/lib/Froxlor/Api/Commands/Ftps.php index acefe14d..55632b71 100644 --- a/lib/Froxlor/Api/Commands/Ftps.php +++ b/lib/Froxlor/Api/Commands/Ftps.php @@ -105,7 +105,7 @@ class Ftps extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEntit $sendinfomail = 0; } - if (Settings::Get('customer.ftpatdomain') == '1') { + if (Settings::Get('customer.ftpatdomain') == '1' && !$is_defaultuser) { if ($ftpusername == '') { \Froxlor\UI\Response::standard_error(array( 'stringisempty',