mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
* Mail: add default value settings for S/MIME passphrase expiration in site configurations
This commit is contained in:
parent
726b9336c2
commit
774c77b5be
@ -3203,6 +3203,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
|
|||||||
self::callWizard($e->getMessage().' '.lang('Please configure your S/MIME certificate in Encryption tab located at Edit Account dialog.'));
|
self::callWizard($e->getMessage().' '.lang('Please configure your S/MIME certificate in Encryption tab located at Edit Account dialog.'));
|
||||||
}
|
}
|
||||||
Framework::message($e->getMessage());
|
Framework::message($e->getMessage());
|
||||||
|
$configs = Api\Config::read('mail');
|
||||||
// do NOT include any default CSS
|
// do NOT include any default CSS
|
||||||
$smimeHtml = $this->get_email_header().
|
$smimeHtml = $this->get_email_header().
|
||||||
'<div class="smime-message">'.lang("This message is smime encrypted and password protected.").'</div>'.
|
'<div class="smime-message">'.lang("This message is smime encrypted and password protected.").'</div>'.
|
||||||
@ -3212,7 +3213,10 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
|
|||||||
'<input type="password" placeholder="'.lang("Please enter password").'" name="smime_passphrase"/>'.
|
'<input type="password" placeholder="'.lang("Please enter password").'" name="smime_passphrase"/>'.
|
||||||
'<input type="submit" value="'.lang("submit").'"/>'.
|
'<input type="submit" value="'.lang("submit").'"/>'.
|
||||||
'<div style="margin-top:10px;position:relative;text-align:center;margin-left:-15px;">'.
|
'<div style="margin-top:10px;position:relative;text-align:center;margin-left:-15px;">'.
|
||||||
lang("Remember the password for ").'<input name="smime_pass_exp" type="number" max="60" min="1" placeholder="10" value="'.$this->mail_bo->mailPreferences['smime_pass_exp'].'"/> '.lang("minutes.").
|
lang("Remember the password for ").
|
||||||
|
'<input name="smime_pass_exp" type="number" max="480" min="1" placeholder="'.
|
||||||
|
(is_array($configs) && $configs['smime_pass_exp'] ? $configs['smime_pass_exp'] : "10").
|
||||||
|
'" value="'.$this->mail_bo->mailPreferences['smime_pass_exp'].'"/> '.lang("minutes.").
|
||||||
'</div>'.
|
'</div>'.
|
||||||
'</div>'.
|
'</div>'.
|
||||||
'</form>';
|
'</form>';
|
||||||
|
@ -85,6 +85,10 @@
|
|||||||
<description value="Quota limit warning in MegaByte (recommended value is 30 MB)."/>
|
<description value="Quota limit warning in MegaByte (recommended value is 30 MB)."/>
|
||||||
<textbox id="newsettings[quota_limit_warning]"/>
|
<textbox id="newsettings[quota_limit_warning]"/>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<description value="Default value for remembering S/MIME passphrase in minutes"/>
|
||||||
|
<textbox id="newsettings[smime_pass_exp]"/>
|
||||||
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user