forked from ZwiiCMS-Team/ZwiiCMS
Bug captcha strong + ménage
This commit is contained in:
parent
6d5ae0a3fc
commit
16817dcfea
@ -508,8 +508,7 @@ class config extends common {
|
||||
'captchaStrong' => $this->getInput('connectCaptchaStrong',helper::FILTER_BOOLEAN),
|
||||
'autoDisconnect' => $this->getInput('connectAutoDisconnect',helper::FILTER_BOOLEAN),
|
||||
'captchaType' => $this->getInput('connectCaptchaType'),
|
||||
'showPassword' => $this->getInput('connectShowPassword',helper::FILTER_BOOLEAN),
|
||||
|
||||
'showPassword' => $this->getInput('connectShowPassword',helper::FILTER_BOOLEAN)
|
||||
],
|
||||
'i18n' => [
|
||||
'enable' => $this->getInput('localei18n',helper::FILTER_BOOLEAN),
|
||||
|
@ -31,13 +31,13 @@
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('connectAutoDisconnect', true, 'Déconnexion automatique', [
|
||||
'checked' => $this->getData(['config','connect', 'autoDisconnect']),
|
||||
'checked' => $this->getData(['config', 'connect', 'autoDisconnect']),
|
||||
'help' => 'Déconnecte les sessions ouvertes précédemment sur d\'autres navigateurs ou terminaux. Activation recommandée.'
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('connectShowPassword', true, 'Dévoiler le mot de passe', [
|
||||
'checked' => $this->getData(['config','connect', 'showPassword']),
|
||||
'checked' => $this->getData(['config', 'connect', 'showPassword']),
|
||||
'help' => 'Dans l\'écran de connexion, active une icône dont le survol affiche temporairement le mot de passe.'
|
||||
]); ?>
|
||||
</div>
|
||||
|
@ -38,20 +38,20 @@ $( document).ready(function() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Afficher etmasquer les option de captcha
|
||||
* Afficher et masquer les options de captcha
|
||||
*/
|
||||
|
||||
if ($("input[name=connectCaptcha]").is(':checked')) {
|
||||
$("#connectCaptchaStrongWrapper").addClass("disabled");
|
||||
$("#connectCaptchaStrongWrapper").slideDown();
|
||||
$("#connectCaptchaTypeWrapper").addClass("disabled");
|
||||
$("#connectCaptchaTypeWrapper").slideDown();
|
||||
$( "#connectCaptchaStrong" ).prop( "checked", false );
|
||||
$("#connectCaptchaTypeWrapper").slideDown();
|
||||
} else {
|
||||
$("#connectCaptchaStrongWrapper").removeClass("disabled");
|
||||
$("#connectCaptchaStrongWrapper").slideUp();
|
||||
$("#connectCaptchaTypeWrapper").removeClass("disabled");
|
||||
$("#connectCaptchaTypeWrapper").slideUp();
|
||||
$( "#connectCaptchaStrong" ).prop( "checked", false );
|
||||
}
|
||||
|
||||
var configLayout = getCookie("configLayout");
|
||||
@ -130,14 +130,14 @@ $( document).ready(function() {
|
||||
$("#connectCaptchaStrongWrapper").addClass("disabled");
|
||||
$("#connectCaptchaStrongWrapper").slideDown();
|
||||
$("#connectCaptchaTypeWrapper").addClass("disabled");
|
||||
$("#connectCaptchaTypeWrapper").slideDown();
|
||||
|
||||
$( "#connectCaptchaStrong" ).prop( "checked", false );
|
||||
$("#connectCaptchaTypeWrapper").slideDown();
|
||||
|
||||
} else {
|
||||
$("#connectCaptchaStrongWrapper").removeClass("disabled");
|
||||
$("#connectCaptchaStrongWrapper").slideUp();
|
||||
$("#connectCaptchaTypeWrapper").removeClass("disabled");
|
||||
$("#connectCaptchaTypeWrapper").slideUp();
|
||||
$( "#connectCaptchaStrong" ).prop( "checked", false );
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user