@@ -37,6 +37,12 @@ class CreateAccount extends AddonController
*/
$this->checkExtensionOrThrowError();
+ //update domain
+ if($params['customfields']['maildomain']){
+ $this->hosting()->domain = $params['customfields']['maildomain'];
+ $this->hosting()->save();
+ }
+
/**
* run zimbra service