From bdc16e064371704d033a8cc390e99c6ccc5c3968 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Mon, 24 Apr 2023 16:25:21 -0400 Subject: [PATCH] use case-insensitive check for is_fsf_staff check --- lib/Auth/Source/FSFDrupalAuth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Auth/Source/FSFDrupalAuth.php b/lib/Auth/Source/FSFDrupalAuth.php index a543e04..2acdc65 100644 --- a/lib/Auth/Source/FSFDrupalAuth.php +++ b/lib/Auth/Source/FSFDrupalAuth.php @@ -422,9 +422,9 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase } $value = (string) $value; - if ($value === $username) { + if (strtolower($value) === strtolower($username)) { // they are staff - $attributes[$key] = ['true']; + $attributes['is_fsf_staff'] = ['true']; break; } } -- 2.25.1