mirror of
https://github.com/discourse/discourse.git
synced 2025-05-04 09:24:37 +08:00
remove hardcoded value and replace with SiteSetting.cas_domainname
This commit is contained in:
parent
9a409d9440
commit
364a59d344
@ -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…
x
Reference in New Issue
Block a user