mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
fix login issue after logging out
This commit is contained in:
parent
ad8d6c4260
commit
fc5b8679da
1 changed files with 3 additions and 0 deletions
|
|
@ -112,11 +112,14 @@ class OC_USER_DATABASE extends OC_USER_BACKEND {
|
|||
*
|
||||
*/
|
||||
public static function logoutLisener() {
|
||||
global $WEBROOT;
|
||||
if ( isset($_GET['logoutbutton']) AND isset($_SESSION['username']) ) {
|
||||
OC_LOG::event($_SESSION['username'], 2, '');
|
||||
$_SESSION['user_id'] = false;
|
||||
$_SESSION['username'] = '';
|
||||
$_SESSION['username_clean'] = '';
|
||||
|
||||
header("location: $WEBROOT");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue