mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-23 13:26:22 -04:00
Merge pull request #923 from eriko/cas_support
remove hardcoded value and replace with SiteSetting.cas_domainname
This commit is contained in:
commit
b228a7c185
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ class Users::OmniauthCallbacksController < ApplicationController
|
||||||
|
|
||||||
def create_or_sign_on_user_using_cas(auth_token)
|
def create_or_sign_on_user_using_cas(auth_token)
|
||||||
logger.error "authtoken #{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]
|
username = auth_token[:extra][:user]
|
||||||
name = auth_token["uid"]
|
name = auth_token["uid"]
|
||||||
cas_user_id = auth_token["uid"]
|
cas_user_id = auth_token["uid"]
|
||||||
|
|
Loading…
Reference in a new issue