simplesamlphp_auth : Allow authentication with local Drupal accounts set to false
This commit is contained in:
parent
61a5f8212e
commit
776dfee4ad
|
@ -302,7 +302,7 @@ function simplesamlphp_auth_init() {
|
|||
else {
|
||||
// The user is already logged into Drupal.
|
||||
// If we forbid users from logging in using local accounts.
|
||||
if (FALSE == variable_get('simplesamlphp_auth_allowdefaultlogin', TRUE)) {
|
||||
if (FALSE == variable_get('simplesamlphp_auth_allowdefaultlogin', FALSE)) {
|
||||
// If the user has NOT been authenticated via simpleSAML...
|
||||
if (!$_simplesamlphp_auth_as->isAuthenticated()) {
|
||||
// :FYI: Until Drupal issue #754560 is corrected this message will never be seen by the user.
|
||||
|
@ -601,7 +601,7 @@ function simplesamlphp_auth_settings() {
|
|||
$form['simplesamlphp_auth_grp_auth']['simplesamlphp_auth_allowdefaultlogin'] = array(
|
||||
'#type' => 'checkbox',
|
||||
'#title' => t('Allow authentication with local Drupal accounts'),
|
||||
'#default_value' => variable_get('simplesamlphp_auth_allowdefaultlogin', TRUE),
|
||||
'#default_value' => variable_get('simplesamlphp_auth_allowdefaultlogin', FALSE),
|
||||
'#description' => t('Check this box if you want to let people log in with local Drupal accounts (without using simpleSAMLphp). If you want to restrict this privilege to certain users you can enter the Drupal user IDs in the field below.'),
|
||||
);
|
||||
$form['simplesamlphp_auth_grp_auth']['simplesamlphp_auth_allowdefaultloginroles'] = array(
|
||||
|
|
Reference in New Issue