From 608e4d702d90126e84a1ee34178602c58d32ad12 Mon Sep 17 00:00:00 2001 From: scith Date: Wed, 7 Oct 2015 21:58:30 +0200 Subject: [PATCH] Fix --- conf/sso.php | 4 ++-- scripts/install | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/conf/sso.php b/conf/sso.php index 8ed23b1..8640e19 100644 --- a/conf/sso.php +++ b/conf/sso.php @@ -11,8 +11,8 @@ if (isset($_SERVER['HTTP_EMAIL']) && isset($_SERVER['PHP_AUTH_PW'])) { $ssoHash = \RainLoop\Api::GetUserSsoHash($email, $password); // redirect to webmail sso url - \header('Location: https://test.com/rainloop/index.php?sso&hash='.$ssoHash); + \header('Location: https://domain.tld/rainloop/index.php?sso&hash='.$ssoHash); } else { - \header('Location: https://test.com/rainloop/index.php'); + \header('Location: https://domain.tld/rainloop/index.php'); } diff --git a/scripts/install b/scripts/install index 89336f5..006f437 100644 --- a/scripts/install +++ b/scripts/install @@ -71,6 +71,7 @@ sudo cp ../conf/data/domains/domain.tld.ini $final_path/data/_data_/_default_/do sudo cp ../conf/data/domains/disabled $final_path/data/_data_/_default_/domains/disabled # SSO +sed -i "s@domain.tld@$domain@g" ../conf/sso.php sudo cp ../conf/sso.php $final_path/sso.php # Temporary workaround until someone finds a way to setup NGINX properly...