forked from ZwiiCMS-Team/ZwiiCMS
10.2.dev14 logique des options de sécurité de connexion
This commit is contained in:
parent
b7a90902ab
commit
d1272cb3c6
@ -39,7 +39,7 @@ class common {
|
|||||||
const ACCESS_TIMER = 1800;
|
const ACCESS_TIMER = 1800;
|
||||||
|
|
||||||
// Numéro de version
|
// Numéro de version
|
||||||
const ZWII_VERSION = '10.2.00.dev12';
|
const ZWII_VERSION = '10.2.00.dev14';
|
||||||
const ZWII_UPDATE_CHANNEL = "v10";
|
const ZWII_UPDATE_CHANNEL = "v10";
|
||||||
|
|
||||||
public static $actions = [];
|
public static $actions = [];
|
||||||
|
@ -10,41 +10,41 @@
|
|||||||
* @link http://zwiicms.com/
|
* @link http://zwiicms.com/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$( document).ready(function() {
|
$( document).ready(function() {
|
||||||
/**
|
/**
|
||||||
* Afficher et masquer options SMTP
|
* Afficher et masquer options SMTP
|
||||||
*/
|
*/
|
||||||
if ($("input[name=configSmtpEnable]").is(':checked')) {
|
if ($("input[name=configSmtpEnable]").is(':checked')) {
|
||||||
$("#configSmtpParam").addClass("disabled");
|
$("#configSmtpParam").addClass("disabled");
|
||||||
$("#configSmtpParam").slideDown();
|
$("#configSmtpParam").slideDown();
|
||||||
} else {
|
} else {
|
||||||
$("#configSmtpParam").removeClass("disabled");
|
$("#configSmtpParam").removeClass("disabled");
|
||||||
$("#configSmtpParam").slideUp();
|
$("#configSmtpParam").slideUp();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Afficher et masquer options Auth
|
* Afficher et masquer options Auth
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ($("select[name=configSmtpAuth]").val() == true) {
|
if ($("select[name=configSmtpAuth]").val() == true) {
|
||||||
$("#configSmtpAuthParam").addClass("disabled");
|
$("#configSmtpAuthParam").addClass("disabled");
|
||||||
$("#configSmtpAuthParam").slideDown();
|
$("#configSmtpAuthParam").slideDown();
|
||||||
} else {
|
} else {
|
||||||
$("#configSmtpAuthParam").removeClass("disabled");
|
$("#configSmtpAuthParam").removeClass("disabled");
|
||||||
$("#configSmtpAuthParam").slideUp();
|
$("#configSmtpAuthParam").slideUp();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Afficher et masquer options SMTP
|
* Afficher et masquer options SMTP
|
||||||
*/
|
*/
|
||||||
$("input[name=configSmtpEnable]").on("change", function() {
|
$("input[name=configSmtpEnable]").on("change", function() {
|
||||||
if ($("input[name=configSmtpEnable]").is(':checked')) {
|
if ($("input[name=configSmtpEnable]").is(':checked')) {
|
||||||
$("#configSmtpParam").addClass("disabled");
|
$("#configSmtpParam").addClass("disabled");
|
||||||
$("#configSmtpParam").slideDown();
|
$("#configSmtpParam").slideDown();
|
||||||
} else {
|
} else {
|
||||||
$("#configSmtpParam").removeClass("disabled");
|
$("#configSmtpParam").removeClass("disabled");
|
||||||
$("#configSmtpParam").slideUp();
|
$("#configSmtpParam").slideUp();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -52,12 +52,27 @@ $("input[name=configSmtpEnable]").on("change", function() {
|
|||||||
* Afficher et masquer options Auth
|
* Afficher et masquer options Auth
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$("select[name=configSmtpAuth]").on("change", function() {
|
$("select[name=configSmtpAuth]").on("change", function() {
|
||||||
if ($("select[name=configSmtpAuth]").val() == true) {
|
if ($("select[name=configSmtpAuth]").val() == true) {
|
||||||
$("#configSmtpAuthParam").addClass("disabled");
|
$("#configSmtpAuthParam").addClass("disabled");
|
||||||
$("#configSmtpAuthParam").slideDown();
|
$("#configSmtpAuthParam").slideDown();
|
||||||
} else {
|
} else {
|
||||||
$("#configSmtpAuthParam").removeClass("disabled");
|
$("#configSmtpAuthParam").removeClass("disabled");
|
||||||
$("#configSmtpAuthParam").slideUp();
|
$("#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);
|
||||||
|
}
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user