1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
movim_ynh/sources/patches/app-00-sso-logout.patch
2018-08-10 17:27:41 +02:00

13 lines
528 B
Diff

diff --git a/app/controllers/DisconnectController.php b/app/controllers/DisconnectController.php
index abe2006..af72e68 100644
--- a/app/controllers/DisconnectController.php
+++ b/app/controllers/DisconnectController.php
@@ -20,6 +20,7 @@ class DisconnectController extends Base
// Fresh cookie
Cookie::renew();
- $this->redirect('login');
+ $main_domain = exec('cat /etc/yunohost/current_host');
+ header('Location: https://' . $main_domain . '/yunohost/sso/?action=logout');
}
}