Ver Fonte

add maildomain from customfield

andre há 4 anos atrás
pai
commit
62fc3f1ee6
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      app/Http/Actions/CreateAccount.php

+ 6 - 0
app/Http/Actions/CreateAccount.php

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