Skip to content

Commit 8ddb559

Browse files
larcherBalazs Dianiska
authored andcommitted
Issue #2681321 by kwiechmann, larcher: Undefined index: simplesamlphp_auth_login_path
1 parent 320a808 commit 8ddb559

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

simplesamlphp_auth.admin.inc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ function simplesamlphp_auth_settings_basic() {
7373
'#description' => t("Determines wether or not the module should automatically create/register new Drupal accounts for users that authenticate using SimpleSAMLphp. Unless you've done some custom work to provision Drupal accounts with the necessary authmap entries you will want this checked. NOTE: If unchecked each user must already have been provisioned a Drupal account with an appropriate entry in the authmap table before logging in. Otherwise they will receive a notice and be denied access. Be aware that simply creating a Drupal account will not create the necessary entry in the authmap table."),
7474
);
7575

76+
$form['#submit'][] = 'simplesamlphp_auth_settings_basic_submit';
77+
7678
return system_settings_form($form);
7779
}
7880

@@ -128,8 +130,6 @@ function simplesamlphp_auth_settings_local() {
128130
'#description' => t('Example: @base_url', array('@base_url' => $GLOBALS['base_url'])),
129131
);
130132

131-
$form['#submit'][] = 'simplesamlphp_auth_settings_local_submit';
132-
133133
return system_settings_form($form);
134134
}
135135

@@ -186,14 +186,14 @@ function simplesamlphp_auth_settings_sync() {
186186
}
187187

188188
/**
189-
* Additional submission handler for simplesamlphp_auth_settings_local().
189+
* Additional submission handler for simplesamlphp_auth_settings_basic().
190190
*
191191
* If there is a change in the login path, trigger a menu rebuild.
192192
*
193-
* @see simplesamlphp_auth_settings_local()
193+
* @see simplesamlphp_auth_settings_basic()
194194
* @see system_settings_form_submit()
195195
*/
196-
function simplesamlphp_auth_settings_local_submit($form, &$form_state) {
196+
function simplesamlphp_auth_settings_basic_submit($form, &$form_state) {
197197
$old_login_path = variable_get('simplesamlphp_auth_login_path', 'saml_login');
198198
$new_login_path = $form_state['values']['simplesamlphp_auth_login_path'];
199199

0 commit comments

Comments
 (0)