From 6d2076e85940c38c3b00bc26ec932aae09712743 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Tue, 28 Nov 2017 16:29:49 -0800 Subject: Add config option to exclude fields from auth providers sync --- app/Core/User/UserProperty.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Core') diff --git a/app/Core/User/UserProperty.php b/app/Core/User/UserProperty.php index 348bd7f3..685690c2 100644 --- a/app/Core/User/UserProperty.php +++ b/app/Core/User/UserProperty.php @@ -44,7 +44,7 @@ class UserProperty */ public static function filterProperties(array $profile, array $properties) { - $excludedProperties = array('username'); + $excludedProperties = explode_csv_field(EXTERNAL_AUTH_EXCLUDE_FIELDS); $values = array(); foreach ($properties as $property => $value) { -- cgit v1.2.3