10.2.dev14 logique des options de sécurité de connexion

This commit is contained in:
Fred Tempez 2020-05-29 17:53:30 +02:00
parent b7a90902ab
commit d1272cb3c6
2 changed files with 31 additions and 16 deletions

View File

@ -39,7 +39,7 @@ class common {
const ACCESS_TIMER = 1800;
// Numéro de version
const ZWII_VERSION = '10.2.00.dev12';
const ZWII_VERSION = '10.2.00.dev14';
const ZWII_UPDATE_CHANNEL = "v10";
public static $actions = [];

View File

@ -61,3 +61,18 @@ $("select[name=configSmtpAuth]").on("change", function() {
$("#configSmtpAuthParam").slideUp();
}
});
/**
* Options de blocage de connexions choix aucun
*/
$("select[name=configConnectAttempt]").on("change", function() {
if ($("select[name=configConnectAttempt]").val() === "999") {
$("select[name=configConnectTimeout]").val(0);
}
});
$("select[name=configConnectTimeout]").on("change", function() {
if ($("select[name=configConnectTimeout]").val() === "0") {
$("select[name=configConnectAttempt]").val(999);
}
});