You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-06 06:42:37 +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 ),
|
'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' , '' ),
|
'created' => pacol(0, 0, 0, 'ts', 'created' , '' ),
|
||||||
'modified' => pacol(0, 0, $super, 'ts', 'last_modified' , '' ),
|
'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 ,
|
'_can_edit' => pacol(0, 0, 1, 'int', '' , '' , 0 ,
|
||||||
/*options*/ array(),
|
/*options*/ array(),
|
||||||
/*not_in_db*/ 0,
|
/*not_in_db*/ 0,
|
||||||
@@ -145,7 +145,6 @@ class DomainHandler extends PFAHandler {
|
|||||||
if ($this->is_superadmin) {
|
if ($this->is_superadmin) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->errormsg[] = Config::Lang_f('edit_not_allowed', $this->id);
|
$this->errormsg[] = Config::Lang_f('edit_not_allowed', $this->id);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user