Permalink
Browse files

Handle logout in a new way (user login)

  • Loading branch information...
Vilican committed Sep 3, 2017
1 parent 74c29f8 commit 9f30aa5ff4d8bd5e182e71eb04b8e4f927ea8377
Showing with 1 addition and 2 deletions.
  1. +1 −2 users/login.php
View
@@ -28,7 +28,6 @@
*/
$rel_path = '../';
//define('POSTFIXADMIN_LOGOUT', 1);
require_once("../common.php");
check_db_version(); # check if the database layout is up to date (and error out if not)
@@ -49,7 +48,7 @@
$h = new MailboxHandler();
if($h->login($fUsername, $fPassword)) {
session_regenerate_id();
session_regenerate_id(true);
$_SESSION['sessid'] = array();
$_SESSION['sessid']['roles'] = array();
$_SESSION['sessid']['roles'][] = 'user';

0 comments on commit 9f30aa5

Please sign in to comment.