|
|
|
@ -13,6 +13,13 @@ class MailboxHandler extends PFAHandler {
|
|
|
|
|
# init $this->struct, $this->db_table and $this->id_field
|
|
|
|
|
protected function initStruct() {
|
|
|
|
|
$passwordReset = Config::read('forgotten_user_password_reset');
|
|
|
|
|
if ($passwordReset) {
|
|
|
|
|
$reset_by_sms = 0;
|
|
|
|
|
if (Config::read('sms_send_function')) {
|
|
|
|
|
$reset_by_sms = 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$this->struct=array(
|
|
|
|
|
# field name allow display in... type $PALANG label $PALANG description default / options / ...
|
|
|
|
|
# editing? form list
|
|
|
|
@ -38,7 +45,7 @@ class MailboxHandler extends PFAHandler {
|
|
|
|
|
'welcome_mail' => pacol($this->new, $this->new, 0, 'bool', 'pCreate_mailbox_mail' , '' , 1,
|
|
|
|
|
/*options*/ '',
|
|
|
|
|
/*not_in_db*/ 1 ),
|
|
|
|
|
'phone' => pacol(1, $passwordReset, 0, 'text', 'pCreate_mailbox_phone' , 'pCreate_mailbox_phone_desc' , ''),
|
|
|
|
|
'phone' => pacol(1, $reset_by_sms, 0, 'text', 'pCreate_mailbox_phone' , 'pCreate_mailbox_phone_desc' , ''),
|
|
|
|
|
'email_other' => pacol(1, $passwordReset, 0, 'mail', 'pCreate_mailbox_email' , 'pCreate_mailbox_email_desc' , ''),
|
|
|
|
|
'token' => pacol(1, 0, 0, 'text', '' , '' ),
|
|
|
|
|
'token_validity' => pacol(1, 0, 0, 'ts', '' , '', date("Y-m-d H:i:s",time())),
|
|
|
|
|