From 364a59d3443c67b49a8bbfbdd69f4217f177dc61 Mon Sep 17 00:00:00 2001 From: Erik Ordway Date: Wed, 29 May 2013 15:47:49 -0700 Subject: [PATCH] remove hardcoded value and replace with SiteSetting.cas_domainname --- app/controllers/users/omniauth_callbacks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users/omniauth_callbacks_controller.rb b/app/controllers/users/omniauth_callbacks_controller.rb index 4e45f814b2a..e9625402c4f 100644 --- a/app/controllers/users/omniauth_callbacks_controller.rb +++ b/app/controllers/users/omniauth_callbacks_controller.rb @@ -144,7 +144,7 @@ class Users::OmniauthCallbacksController < ApplicationController def create_or_sign_on_user_using_cas(auth_token) logger.error "authtoken #{auth_token}" - email = "#{auth_token[:extra][:user]}@evergreen.edu" + email = "#{auth_token[:extra][:user]}@#{SiteSetting.cas_domainname}" username = auth_token[:extra][:user] name = auth_token["uid"] cas_user_id = auth_token["uid"]