mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
redirect to owncloud root after logout
This commit is contained in:
parent
9dd0d90f69
commit
50035f5a92
1 changed files with 2 additions and 1 deletions
|
|
@ -29,7 +29,8 @@ var_dump( $_SESSION );
|
|||
if( OC_USER::isLoggedIn()){
|
||||
if( $_GET["logout"] ){
|
||||
OC_USER::logout();
|
||||
OC_TEMPLATE::printGuestPage( "", "logout" );
|
||||
header( "Location: $WEBROOT");
|
||||
exit();
|
||||
}
|
||||
else{
|
||||
header( "Location: ".OC_APPCONFIG::getValue( "core", "defaultpage", "files/index.php" ));
|
||||
|
|
|
|||
Loading…
Reference in a new issue