10.2.dev27 check login fail values
This commit is contained in:
parent
a700dcb1aa
commit
b30f70a4c8
@ -39,7 +39,7 @@ class common {
|
||||
const ACCESS_TIMER = 1800;
|
||||
|
||||
// Numéro de version
|
||||
const ZWII_VERSION = '10.2.00.dev26';
|
||||
const ZWII_VERSION = '10.2.00.dev27';
|
||||
const ZWII_UPDATE_CHANNEL = "v10";
|
||||
|
||||
public static $actions = [];
|
||||
|
@ -415,20 +415,7 @@ class config extends common {
|
||||
} else {
|
||||
$legalPageId = '';
|
||||
}
|
||||
// Contrôle de cohérence
|
||||
$connectAttempt = $this->getInput('configConnectAttempt', helper::FILTER_INT);
|
||||
$connectTimeout = $this->getInput('configConnectTimeout', helper::FILTER_INT);
|
||||
if(
|
||||
( $connectAttempt === 999 && $connectTimeout !== 0 )
|
||||
) {
|
||||
self::$inputNotices['configConnectAttempt'] = 'Valeur incorrecte';
|
||||
}
|
||||
if(
|
||||
( $connectAttempt !== 999 && $connectTimeout === 0 )
|
||||
) {
|
||||
self::$inputNotices['configConnectTimeout'] = 'Valeur incorrecte';
|
||||
}
|
||||
|
||||
// Sauvegarder
|
||||
$this->setData([
|
||||
'config',
|
||||
[
|
||||
|
@ -63,16 +63,25 @@ $("select[name=configSmtpAuth]").on("change", function() {
|
||||
});
|
||||
|
||||
/**
|
||||
* Options de blocage de connexions choix aucun
|
||||
* Options de blocage de connexions
|
||||
* Contrôle la cohérence des sélections et interdit une seule valeur Aucune
|
||||
*/
|
||||
$("select[name=configConnectAttempt]").on("change", function() {
|
||||
if ($("select[name=configConnectAttempt]").val() === "999") {
|
||||
$("select[name=configConnectTimeout]").val(0);
|
||||
} else {
|
||||
if ($("select[name=configConnectTimeout]").val() === "0") {
|
||||
$("select[name=configConnectTimeout]").val(300);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$("select[name=configConnectTimeout]").on("change", function() {
|
||||
if ($("select[name=configConnectTimeout]").val() === "0") {
|
||||
$("select[name=configConnectAttempt]").val(999);
|
||||
} else {
|
||||
if ($("select[name=configConnectAttempt]").val() === "999") {
|
||||
$("select[name=configConnectAttempt]").val(3);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user