You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-31 10:04:20 +03:00
add default value for password_expiry (default to one year)
should fix: https://github.com/postfixadmin/postfixadmin/issues/280
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user