Skip to content
Snippets Groups Projects
Commit fc5b8679 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix login issue after logging out

parent ad8d6c42
No related branches found
No related tags found
No related merge requests found
......@@ -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");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment