mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Fixes #1984 Disable CHAP when SSL is enabled or encryption method is not legacy MD5
This commit is contained in:
@@ -96,6 +96,12 @@ if(isset($_POST['updateprefs']))
|
|||||||
$mes->addError(PRFLAN_211);
|
$mes->addError(PRFLAN_211);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(!empty($_POST['passwordEncoding']) || !empty($_POST['ssl_enabled']))
|
||||||
|
{
|
||||||
|
$_POST['password_CHAP'] = 0; // disable chap unless using md5 without SSL.
|
||||||
|
}
|
||||||
|
|
||||||
// Table of range checking values - min and max for numerics. Only do the important ones
|
// Table of range checking values - min and max for numerics. Only do the important ones
|
||||||
$pref_limits = array('loginname_maxlength' => array('min' => 10, 'max' => 100, 'default' => 30),
|
$pref_limits = array('loginname_maxlength' => array('min' => 10, 'max' => 100, 'default' => 30),
|
||||||
'displayname_maxlength' => array('min' => 5, 'max' => 100, 'default' => 15),
|
'displayname_maxlength' => array('min' => 5, 'max' => 100, 'default' => 15),
|
||||||
@@ -1427,7 +1433,10 @@ $text .= "
|
|||||||
|
|
||||||
$text .= "
|
$text .= "
|
||||||
<td><label for='password-chap'>".PRFLAN_178."</label></td>
|
<td><label for='password-chap'>".PRFLAN_178."</label></td>
|
||||||
<td>".$frm->select('password_CHAP',$CHAP_list,$pref['password_CHAP'] );
|
<td>";
|
||||||
|
|
||||||
|
$CHAPopt = !empty($pref['ssl_enabled']) || !empty($pref['passwordEncoding']) ? array('disabled'=>1) : null;
|
||||||
|
$text .= $frm->select('password_CHAP',$CHAP_list,$pref['password_CHAP'], $CHAPopt );
|
||||||
//." ".$frm->select_open('password_CHAP');
|
//." ".$frm->select_open('password_CHAP');
|
||||||
|
|
||||||
//TODO - user tracking session name - visible only if Cookie is enabled (JS)
|
//TODO - user tracking session name - visible only if Cookie is enabled (JS)
|
||||||
|
@@ -1545,7 +1545,7 @@ body#admin-menus #sc-admin-help .panel-body {
|
|||||||
overflow-y:scroll;
|
overflow-y:scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-control[disabled] { opacity: 0.5; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -775,9 +775,13 @@ $(document).ready(function()
|
|||||||
|
|
||||||
$(selector).toggle();
|
$(selector).toggle();
|
||||||
|
|
||||||
|
// $('.menu-selector input[type="checkbox"]').removeAttr("checked");
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(".e-mm-selector li input").click(function(e){
|
$(".e-mm-selector li input").click(function(e){
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user