Skip to content

Commit

Permalink
[FIX] Auth: pass arguments as correct data-type.
Browse files Browse the repository at this point in the history
(cherry picked from commit 07cced8)
  • Loading branch information
thibsy authored and mjansenDatabay committed Oct 10, 2024
1 parent 495e50a commit 111a28b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getProviders(ilAuthCredentials $credentials): array

$providers = array();
foreach ($sequence as $position => $authmode) {
$provider = $this->getProviderByAuthMode($credentials, $authmode);
$provider = $this->getProviderByAuthMode($credentials, (string) $authmode);
if ($provider instanceof ilAuthProviderInterface) {
$providers[] = $provider;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private function read(): void

default:
foreach (ilAuthUtils::getAuthPlugins() as $pl) {
if ($pl->isAuthActive($auth_mode)) {
if ($pl->isAuthActive((int) $auth_mode)) {
$this->position[] = $auth_mode;
}
}
Expand Down

0 comments on commit 111a28b

Please sign in to comment.