CC-3951: Password Reset: You can still reset password even after system email for Password Reset disabled
-fixed
This commit is contained in:
parent
e6336044ed
commit
7d4851573f
1 changed files with 28 additions and 23 deletions
|
@ -100,6 +100,10 @@ class LoginController extends Zend_Controller_Action
|
|||
|
||||
public function passwordRestoreAction()
|
||||
{
|
||||
if (!Application_Model_Preference::GetEnableSystemEmail()) {
|
||||
$this->_redirect('login');
|
||||
}
|
||||
else {
|
||||
//uses separate layout without a navigation.
|
||||
$this->_helper->layout->setLayout('login');
|
||||
|
||||
|
@ -124,6 +128,7 @@ class LoginController extends Zend_Controller_Action
|
|||
|
||||
$this->view->form = $form;
|
||||
}
|
||||
}
|
||||
|
||||
public function passwordRestoreAfterAction()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue