Skip to content
Snippets Groups Projects

Hotline master

Merged Patrick Barroca requested to merge hotline-master into master
Compare and
+ 325
99
Preferences
Compare changes
Files
@@ -97,10 +97,30 @@ class Admin_ModulesController extends ZendAfi_Controller_Action {
if ('lostpass' == $this->_getParam('action1'))
return $this->_forward('auth-lost-pass');
if ('login' == $this->_getParam('action1'))
return $this->_forward('auth-login');
return $this->_simpleAction('auth_'.$this->_getParam('action1'));
}
public function authLoginAction() {
$form = ZendAfi_Form_Configuration_Login::newWith($this->preferences);
$form->setAction($this->view->url(['controller' => 'modules',
'action' => 'auth-login',
'render' => 'popup']));
if ($this->_request->isPost() && $form->isValid($this->_request->getPost())) {
$datas = $form->getValues();
unset($datas['submit']);
return $this->updateEtRetour($datas);
}
$this->view->form = $form;
}
public function authLostPassAction() {
$form = ZendAfi_Form_Configuration_AuthLostPass::newWith($this->preferences);
$form->setAction($this->view->url(['controller' => 'modules',