move main ftp account creation to DA user creation

Version 1.431


Previously the system ftp account is set each time a domain is created. This means that for Admin accounts who do not have domains at first, no ftp account exists. This could be resolved by creating a domain to add the ftp account. The reason this is an issue is that if you set a custom ftp password for your system ftp account (when you already have a domain), and then create another domain, the main account ftp password is reset to your login value, which is not correct. This change will move the ftp account creation code to the User creation so it's only ever set once.

Interested to try DirectAdmin? Get a 30-day Free Trial!