def prepare_user
user = User.new(params[:user])
+ user.external_identity = user.login
+ user.external_identity_provider = 'sonarqube'
default_group_name=java_facade.getSettings().getString('sonar.defaultGroup')
default_group=Group.find_by_name(default_group_name)
user.groups<<default_group if default_group
write_attribute :email, (value && value.downcase)
end
+ def external_identity=(value)
+ write_attribute :external_identity, value
+ end
+
+ def external_identity_provider=(value)
+ write_attribute :external_identity_provider, value
+ end
+
# SCM accounts should also contain login and email
def full_scm_accounts
new_scm_accounts = self.scm_accounts.split(/\r?\n/).reject { |c| c.empty? } if self.scm_accounts