From b07c5a3a55cdaff132261b9c9da37c7a47443fd9 Mon Sep 17 00:00:00 2001 From: Jan Pavlicek <469355@mail.muni.cz> Date: Mon, 19 Jun 2023 11:31:59 +0200 Subject: [PATCH] fix: entropy attributes are arrays --- lib/Auth/Process/SwitchAuth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Auth/Process/SwitchAuth.php b/lib/Auth/Process/SwitchAuth.php index 044d921..043ab28 100644 --- a/lib/Auth/Process/SwitchAuth.php +++ b/lib/Auth/Process/SwitchAuth.php @@ -254,10 +254,10 @@ class SwitchAuth extends \SimpleSAML\Auth\ProcessingFilter return false; } - if ($attributes[$this->sfa_alphabet_attr] >= 52 && $attributes[$this->sfa_len_attr] >= 12) { + if ($attributes[$this->sfa_alphabet_attr][0] >= 52 && $attributes[$this->sfa_len_attr][0] >= 12) { return true; } - if ($attributes[$this->sfa_alphabet_attr] >= 72 && $attributes[$this->sfa_len_attr] >= 8) { + if ($attributes[$this->sfa_alphabet_attr][0] >= 72 && $attributes[$this->sfa_len_attr][0] >= 8) { return true; } -- GitLab