Add auth controller

This commit is contained in:
Frederic Guillot
2015-04-11 18:05:10 -04:00
parent ea9d402587
commit 7df055aff1
6 changed files with 74 additions and 62 deletions

View File

@@ -197,7 +197,7 @@ abstract class Base
$this->response->text('Not Authorized', 401);
}
$this->response->redirect('?controller=user&action=login&redirect_query='.urlencode($this->request->getQueryString()));
$this->response->redirect($this->helper->url('auth', 'login', array('redirect_query' => urlencode($this->request->getQueryString()))));
}
}