diff --git a/User/GenericOAuth2UserProvider.php b/User/GenericOAuth2UserProvider.php index 7e501fa..0647ced 100644 --- a/User/GenericOAuth2UserProvider.php +++ b/User/GenericOAuth2UserProvider.php @@ -78,10 +78,16 @@ public function getExternalIdColumn() public function getExtraAttributes() { if ($this->isUserCreationAllowed()) { - return array( + $attributes = array( 'is_ldap_user' => 1, 'disable_login_form' => 1, ); + + if ($this->configModel->get('notifications_enabled', 0) == 1) { + $attributes['notifications_enabled'] = 1; + } + + return $attributes; } return array();