logout location is configurable

Useful for installations where you want to "cascade" logout to a central
authentication system
This commit is contained in:
baz 2018-10-16 13:14:56 +02:00
parent d6ab5df482
commit 6b0ef3d211
2 changed files with 9 additions and 1 deletions

View file

@ -263,7 +263,11 @@ class Handler_Public extends Handler {
function logout() { function logout() {
logout_user(); logout_user();
header("Location: index.php"); $location = 'index.php';
if(defined('LOGOUT_LOCATION')) {
$location = LOGOUT_LOCATION;
}
header("Location: $location");
} }
function share() { function share() {

View file

@ -90,6 +90,10 @@
// If set to true, users won't be able to set application language // If set to true, users won't be able to set application language
// and settings profile. // and settings profile.
define ('LOGIN_LOCATION', 'index.php');
// When a user logs out, redirect to this location. This is useful when you have some central
// authentication system, and you want to reach the main logout page
// ********************* // *********************
// *** Feed settings *** // *** Feed settings ***
// ********************* // *********************