From 64e4e6e7714870919f2f7eedb09c383120d1f599 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 2 Feb 2016 17:41:39 +0100 Subject: [PATCH] SONAR-6226 Id provider info are set when users signup --- .../webapp/WEB-INF/app/controllers/users_controller.rb | 2 ++ .../sonar-web/src/main/webapp/WEB-INF/app/models/user.rb | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/users_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/users_controller.rb index ac643f9c0d4..7a0729b623a 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/users_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/users_controller.rb @@ -66,6 +66,8 @@ class UsersController < ApplicationController 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<