1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rainloop_ynh.git synced 2024-09-03 20:16:18 +02:00
This commit is contained in:
scith 2015-10-07 21:58:30 +02:00
parent 38e6602154
commit 608e4d702d
2 changed files with 3 additions and 2 deletions

View file

@ -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');
}

View file

@ -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...