Fixing PHPCI so that it'll work in a subdirectory.
This commit is contained in:
parent
b9415316d4
commit
f256db237b
14 changed files with 66 additions and 53 deletions
|
|
@ -34,7 +34,7 @@ class SessionController extends b8\Controller
|
|||
|
||||
if ($user && password_verify($this->getParam('password', ''), $user->getHash())) {
|
||||
$_SESSION['user_id'] = $user->getId();
|
||||
header('Location: /');
|
||||
header('Location: ' . PHPCI_URL);
|
||||
die;
|
||||
}
|
||||
}
|
||||
|
|
@ -72,7 +72,7 @@ class SessionController extends b8\Controller
|
|||
{
|
||||
$_SESSION = array();
|
||||
session_destroy();
|
||||
header('Location: /');
|
||||
header('Location: ' . PHPCI_URL);
|
||||
die;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue