From 8b19ef21cf9a8dc2efb57fd965a036991ac0abd3 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 16 Jul 2019 19:01:40 +0100 Subject: [PATCH] add default value for password_expiry (default to one year) should fix: https://github.com/postfixadmin/postfixadmin/issues/280 --- model/DomainHandler.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/model/DomainHandler.php b/model/DomainHandler.php index 42362aba..5102bdcc 100644 --- a/model/DomainHandler.php +++ b/model/DomainHandler.php @@ -94,7 +94,7 @@ class DomainHandler extends PFAHandler { 'default_aliases' => pacol($this->new, $this->new, 0, 'bool', 'pAdminCreate_domain_defaultaliases', '' , 1,array(), /*not in db*/ 1 ), 'created' => pacol(0, 0, 0, 'ts', 'created' , '' ), 'modified' => pacol(0, 0, $super, 'ts', 'last_modified' , '' ), - 'password_expiry' => pacol($super, $super, $super, 'num', 'password_expiration' , 'password_expiration_desc', ''), + 'password_expiry' => pacol($super, $super, $super, 'num', 'password_expiration' , 'password_expiration_desc', 365), '_can_edit' => pacol(0, 0, 1, 'int', '' , '' , 0 , /*options*/ array(), /*not_in_db*/ 0, @@ -145,7 +145,6 @@ class DomainHandler extends PFAHandler { if ($this->is_superadmin) { return true; } - $this->errormsg[] = Config::Lang_f('edit_not_allowed', $this->id); return false; }