Skip to content

Commit

Permalink
Handle logout in a new way (user login)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilican committed Sep 3, 2017
1 parent 74c29f8 commit 9f30aa5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions users/login.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
*/ */


$rel_path = '../'; $rel_path = '../';
//define('POSTFIXADMIN_LOGOUT', 1);
require_once("../common.php"); require_once("../common.php");


check_db_version(); # check if the database layout is up to date (and error out if not) check_db_version(); # check if the database layout is up to date (and error out if not)
Expand All @@ -49,7 +48,7 @@


$h = new MailboxHandler(); $h = new MailboxHandler();
if($h->login($fUsername, $fPassword)) { if($h->login($fUsername, $fPassword)) {
session_regenerate_id(); session_regenerate_id(true);
$_SESSION['sessid'] = array(); $_SESSION['sessid'] = array();
$_SESSION['sessid']['roles'] = array(); $_SESSION['sessid']['roles'] = array();
$_SESSION['sessid']['roles'][] = 'user'; $_SESSION['sessid']['roles'][] = 'user';
Expand Down

0 comments on commit 9f30aa5

Please sign in to comment.