Просмотр исходного кода

add maildomain from customfield

andre 4 лет назад
Родитель
Сommit
62fc3f1ee6
1 измененных файлов с 6 добавлено и 0 удалено
  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();
 
+            //update domain
+            if($params['customfields']['maildomain']){
+                $this->hosting()->domain = $params['customfields']['maildomain'];
+                $this->hosting()->save();
+            }
+
             /**
              * run zimbra service
              */