Skip to content
Snippets Groups Projects
Commit 6de0cdaa authored by Olav Morken's avatar Olav Morken
Browse files

Utilities::requireAdmin: Change to use SimpleSAML_Auth_Simple.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2605 44740490-163a-0410-bde0-09ae8108e29a
parent a07b0cdf
No related branches found
No related tags found
No related merge requests found
...@@ -1505,7 +1505,8 @@ class SimpleSAML_Utilities { ...@@ -1505,7 +1505,8 @@ class SimpleSAML_Utilities {
/* Not authenticated as admin user. Start authentication. */ /* Not authenticated as admin user. Start authentication. */
if (SimpleSAML_Auth_Source::getById('admin') !== NULL) { if (SimpleSAML_Auth_Source::getById('admin') !== NULL) {
SimpleSAML_Auth_Default::initLogin('admin', $returnTo); $as = new SimpleSAML_Auth_Simple('admin');
$as->login();
} else { } else {
/* For backwards-compatibility. */ /* For backwards-compatibility. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment