Skip to content
Snippets Groups Projects
Commit 4149f692 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

VUFIND-1004

parent 46ad445d
No related merge requests found
......@@ -1103,7 +1103,8 @@ class MyResearchController extends AbstractBase
public function recoverAction()
{
// Make sure we're configured to do this
if (!$this->getAuthManager()->supportsRecovery()) {
$method = trim($this->params()->fromQuery('auth_method'));
if (!$this->getAuthManager()->supportsRecovery($method)) {
$this->flashMessenger()->setNamespace('error')
->addMessage('recovery_disabled');
return $this->redirect()->toRoute('myresearch-home');
......
......@@ -228,7 +228,6 @@ class Auth extends \Zend\View\Helper\AbstractHelper
return array_pop($classParts);
}
/**
* Render the new password form template.
*
......@@ -241,7 +240,6 @@ class Auth extends \Zend\View\Helper\AbstractHelper
return $this->renderTemplate('newpassword.phtml', $context);
}
/**
* Render the password recovery form template.
*
......
......@@ -12,7 +12,7 @@
<input class="btn btn-primary" type="submit" name="processLogin" value="Login">
<? if ($account->supportsRecovery()): ?>
<br/>
<a class="btn btn-link" href="<?=$this->url('myresearch-recover') ?>"><?=$this->transEsc('Forgot Password')?></a>
<a class="btn btn-link" href="<?=$this->url('myresearch-recover') ?>?auth_method=<?=$this->auth()->getActiveAuthMethod()?>"><?=$this->transEsc('Forgot Password')?></a>
<? endif; ?>
</div>
</div>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment