mirror of
https://github.com/YunoHost-Apps/rainloop_ynh.git
synced 2024-09-03 20:16:18 +02:00
Fix
This commit is contained in:
parent
38e6602154
commit
608e4d702d
2 changed files with 3 additions and 2 deletions
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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...
|
||||
|
|
Loading…
Reference in a new issue