2016-07-10 18:19:18 +02:00
|
|
|
diff --git a/app/controllers/DisconnectController.php b/app/controllers/DisconnectController.php
|
2017-03-15 12:24:26 +01:00
|
|
|
index abe2006..af72e68 100644
|
2016-07-10 18:19:18 +02:00
|
|
|
--- a/app/controllers/DisconnectController.php
|
|
|
|
+++ b/app/controllers/DisconnectController.php
|
2017-03-15 12:24:26 +01:00
|
|
|
@@ -20,6 +20,7 @@ class DisconnectController extends Base
|
|
|
|
// Fresh cookie
|
|
|
|
Cookie::renew();
|
2016-07-10 18:19:18 +02:00
|
|
|
|
|
|
|
- $this->redirect('login');
|
|
|
|
+ $main_domain = exec('cat /etc/yunohost/current_host');
|
|
|
|
+ header('Location: https://' . $main_domain . '/yunohost/sso/?action=logout');
|
|
|
|
}
|
|
|
|
}
|