Some fixes for subdirectory support.
This commit is contained in:
parent
c935c5c7ee
commit
0590890511
4 changed files with 9 additions and 9 deletions
|
|
@ -21,7 +21,7 @@ class SessionController extends \PHPCI\Controller
|
|||
{
|
||||
public function init()
|
||||
{
|
||||
$this->response->disableLayout();
|
||||
$this->response->disableLayout();
|
||||
$this->_userStore = b8\Store\Factory::getStore('User');
|
||||
}
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ class SessionController extends \PHPCI\Controller
|
|||
* Handles user login (form and processing)
|
||||
*/
|
||||
public function login()
|
||||
{
|
||||
{
|
||||
if ($this->request->getMethod() == 'POST') {
|
||||
$user = $this->_userStore->getByEmail($this->getParam('email'));
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ class SessionController extends \PHPCI\Controller
|
|||
|
||||
$form = new b8\Form();
|
||||
$form->setMethod('POST');
|
||||
$form->setAction('/session/login');
|
||||
$form->setAction(PHPCI_URL.'session/login');
|
||||
|
||||
$email = new b8\Form\Element\Email('email');
|
||||
$email->setLabel('Email Address');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue