Skip to content

Commit 13fbbab

Browse files
msoundBalazs Dianiska
authored andcommitted
Issue #2395811 by msound: SAML authentication works even when SimpleSAML auth is disabled
1 parent e82df00 commit 13fbbab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

simplesamlphp_auth.module

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function simplesamlphp_auth_menu() {
4848
'title' => 'Logon to the site',
4949
'description' => 'Provides a site login page',
5050
'page callback' => 'simplesamlphp_auth_loginpage',
51-
'access callback' => TRUE,
51+
'access callback' => '_simplesamlphp_auth_isEnabled',
5252
'file' => 'simplesamlphp_auth.pages.inc',
5353
'type' => MENU_CALLBACK,
5454
);
@@ -370,6 +370,9 @@ function _simplesamlphp_auth_isEnabled($bShowInactiveMsg = FALSE) {
370370
}
371371

372372
}
373+
else {
374+
$failure = t('SimpleSAMLphp auth is not yet activated.');
375+
}
373376

374377
// If there were no failures, then it should be activated.
375378
if (!$failure) {

0 commit comments

Comments
 (0)