Disable password reset in saas-dev (moved to saas-email branch)
This commit is contained in:
parent
abdc94ccc3
commit
ce0cc946ab
2 changed files with 38 additions and 38 deletions
|
@ -140,9 +140,9 @@ class LoginController extends Zend_Controller_Action
|
||||||
|
|
||||||
Application_Model_Locale::configureLocalization($request->getcookie('airtime_locale', $stationLocale));
|
Application_Model_Locale::configureLocalization($request->getcookie('airtime_locale', $stationLocale));
|
||||||
|
|
||||||
// if (!Application_Model_Preference::GetEnableSystemEmail()) {
|
if (!Application_Model_Preference::GetEnableSystemEmail()) {
|
||||||
// $this->_redirect('login');
|
$this->_redirect('login');
|
||||||
// } else {
|
} else {
|
||||||
//uses separate layout without a navigation.
|
//uses separate layout without a navigation.
|
||||||
$this->_helper->layout->setLayout('login');
|
$this->_helper->layout->setLayout('login');
|
||||||
|
|
||||||
|
@ -176,7 +176,7 @@ class LoginController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->view->form = $form;
|
$this->view->form = $form;
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function passwordRestoreAfterAction()
|
public function passwordRestoreAfterAction()
|
||||||
|
|
|
@ -30,12 +30,12 @@
|
||||||
|
|
||||||
<?php echo $this->element->getElement('csrf') ?>
|
<?php echo $this->element->getElement('csrf') ?>
|
||||||
|
|
||||||
<!-- --><?php //if (Application_Model_Preference::GetEnableSystemEmail()): ?>
|
<?php if (Application_Model_Preference::GetEnableSystemEmail()): ?>
|
||||||
<dt id="reset-label" class="hidden"> </dt>
|
<dt id="reset-label" class="hidden"> </dt>
|
||||||
<dd id="reset-element" class="text-right">
|
<dd id="reset-element" class="text-right">
|
||||||
<a href="<?php echo $this->baseUrl('login/password-restore'); ?>" class="link reset"><?php echo _("Reset password") ?></a>
|
<a href="<?php echo $this->baseUrl('login/password-restore'); ?>" class="link reset"><?php echo _("Reset password") ?></a>
|
||||||
</dd>
|
</dd>
|
||||||
<!-- --><?php //endif; ?>
|
<?php endif; ?>
|
||||||
<?php echo $this->element->getElement('captcha') ?>
|
<?php echo $this->element->getElement('captcha') ?>
|
||||||
<dt id="submit-label"> </dt>
|
<dt id="submit-label"> </dt>
|
||||||
<dd id="submit-element">
|
<dd id="submit-element">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue