- fix so that we are checking logoutURL properly from properties file
git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@4033 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
parent
9871f9acfa
commit
873a8c125b
@ -74,7 +74,7 @@ bigbluebutton.web.serverURL=http://192.168.0.120
|
||||
#----------------------------------------------------
|
||||
# URL where the logged-out participant will be redirected after sign-out.
|
||||
# If commented-out, it returns to bigbluebutton.web.serverURL
|
||||
# bigbluebutton.web.logoutURL=http://www.bigbluebutton.org
|
||||
#bigbluebutton.web.logoutURL=http://www.bigbluebutton.org
|
||||
|
||||
#------------------------------------------------------
|
||||
# Setting to enable the old scheduling mechanism. This is temporary
|
||||
|
@ -273,23 +273,31 @@ class PublicScheduledSessionController {
|
||||
def config = ConfigurationHolder.config
|
||||
def hostURL = config.bigbluebutton.web.logoutURL
|
||||
|
||||
log.debug("LogoutURL=$hostURL")
|
||||
|
||||
// For backward compatibility. We renamed "loggedOutUrl" to
|
||||
// "logoutURL" in 0.64 to be consistent with the API. Remove this
|
||||
// in later iterations (ralam mar 26, 2010)
|
||||
if ((hostURL == null) || (hostURL = "")) {
|
||||
//if ((hostURL == null) || (hostURL == "")) {
|
||||
if (hostURL.isEmpty()) {
|
||||
log.debug("No logoutURL property set. Checking for old loggedOutUrl.")
|
||||
hostURL = config.bigbluebutton.web.loggedOutUrl
|
||||
if (!hostURL.isEmpty())
|
||||
log.debug("Old loggedOutUrl property set to $hostURL")
|
||||
}
|
||||
|
||||
def meetingToken = session["conference"]
|
||||
DynamicConference conf = dynamicConferenceService.getConferenceByToken(meetingToken)
|
||||
if (conf != null) {
|
||||
if ((conf.logoutUrl != null) || (conf.logoutUrl != "")) {
|
||||
hostURL = conf.logoutUrl
|
||||
if ((conf.logoutUrl != null) && (conf.logoutUrl != "")) {
|
||||
hostURL = conf.logoutUrl
|
||||
log.debug("logoutURL has been set from API. Redirecting to server url $hostURL.")
|
||||
}
|
||||
}
|
||||
|
||||
if (!hostURL){
|
||||
if (hostURL.isEmpty()) {
|
||||
hostURL = config.bigbluebutton.web.serverURL
|
||||
log.debug("No logout url. Redirecting to server url $hostURL.")
|
||||
}
|
||||
// Log the user out of the application.
|
||||
session.invalidate()
|
||||
|
Loading…
Reference in New Issue
Block a user