summaryrefslogtreecommitdiff
path: root/app/Core
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2017-11-28 16:29:49 -0800
committerFrédéric Guillot <fred@kanboard.net>2017-11-28 16:29:49 -0800
commit6d2076e85940c38c3b00bc26ec932aae09712743 (patch)
tree6110681fad8649f52d9410c93ce371aeb9c4d808 /app/Core
parent436673247fc28ae05c6b17baf202ca26e1903862 (diff)
Add config option to exclude fields from auth providers sync
Diffstat (limited to 'app/Core')
-rw-r--r--app/Core/User/UserProperty.php2
1 files changed, 1 insertions, 1 deletions
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) {