logout location is configurable
Useful for installations where you want to "cascade" logout to a central authentication system
This commit is contained in:
parent
c925f4e3fd
commit
6e6acabbfb
2 changed files with 9 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
|
@ -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 ***
|
||||||
// *********************
|
// *********************
|
||||||
|
|
Loading…
Reference in a new issue