Skip to content
Snippets Groups Projects
Commit 38017061 authored by Robert Lange's avatar Robert Lange
Browse files

refs #22747 [finc] adapt new captcha from (VUFIND-1379) (#1574)

parent 29f6fd76
Branches
Tags
No related merge requests found
...@@ -27,7 +27,7 @@ $this->headTitle($this->translate('Reset Password')); ...@@ -27,7 +27,7 @@ $this->headTitle($this->translate('Reset Password'));
<label class="control-label"><?=$this->transEsc('Email')?>:</label> <label class="control-label"><?=$this->transEsc('Email')?>:</label>
<input type="email" class="form-control" name="email" <?=isset($email) ? 'value="' . $email . '" ' : ''?>autocomplete="email" required/> <input type="email" class="form-control" name="email" <?=isset($email) ? 'value="' . $email . '" ' : ''?>autocomplete="email" required/>
</div> </div>
<?=$this->recaptcha()->html($this->useRecaptcha)?> <?=$this->captcha()->html($this->useRecaptcha)?>
<div class="form-group"> <div class="form-group">
<input class="btn btn-transparent" name="submit" type="submit" aria-label="submit form" value="<?=$this->transEsc('recovery_title')?>"/> <input class="btn btn-transparent" name="submit" type="submit" aria-label="submit form" value="<?=$this->transEsc('recovery_title')?>"/>
</div> </div>
......
...@@ -278,9 +278,9 @@ if (!isset($this->layout()->searchbox)) { ...@@ -278,9 +278,9 @@ if (!isset($this->layout()->searchbox)) {
<div class="offcanvas-overlay" data-toggle="offcanvas"></div> <div class="offcanvas-overlay" data-toggle="offcanvas"></div>
<?=$this->googleanalytics()?> <?=$this->googleanalytics()?>
<?=$this->piwik()?> <?=$this->piwik()?>
<?php if ($this->recaptcha()->active()): ?> <?php foreach ($this->captcha()->js() as $jsInclude):?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::FILE, "https://www.google.com/recaptcha/api.js?onload=recaptchaOnLoad&render=explicit&hl=" . $this->layout()->userLang, 'SET')?> <?=$this->inlineScript(\Laminas\View\Helper\HeadScript::FILE, $jsInclude, 'SET')?>
<?php endif; ?> <?php endforeach; ?>
<?php /* Enable Tooltips, finc-specific, CK */ ?> <?php /* Enable Tooltips, finc-specific, CK */ ?>
<script> <script>
$(document).ready(function () { $(document).ready(function () {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<form method="post" name="accountForm" id="accountForm" class="form-user-create" data-toggle="validator" role="form"> <form method="post" name="accountForm" id="accountForm" class="form-user-create" data-toggle="validator" role="form">
<?=$this->auth()->getCreateFields()?> <?=$this->auth()->getCreateFields()?>
<?=$this->recaptcha()->html($this->useRecaptcha) ?> <?=$this->captcha()->html($this->useRecaptcha) ?>
<div class="form-group"> <div class="form-group">
<a class="back-to-login btn btn-link" href="<?=$this->url('myresearch-userlogin') ?>"><i class="fa fa-chevron-left" aria-hidden="true"></i> <?=$this->transEsc('Back')?></a> <a class="back-to-login btn btn-link" href="<?=$this->url('myresearch-userlogin') ?>"><i class="fa fa-chevron-left" aria-hidden="true"></i> <?=$this->transEsc('Back')?></a>
<?php /* finc uses 'form-button-submit' here */ ?> <?php /* finc uses 'form-button-submit' here */ ?>
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->username) ?>" name="username"/> <input type="hidden" value="<?=$this->escapeHtmlAttr($this->username) ?>" name="username"/>
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->auth_method) ?>" name="auth_method"/> <input type="hidden" value="<?=$this->escapeHtmlAttr($this->auth_method) ?>" name="auth_method"/>
<?=$this->auth()->getNewPasswordForm() ?> <?=$this->auth()->getNewPasswordForm() ?>
<?=$this->recaptcha()->html($this->useRecaptcha) ?> <?=$this->captcha()->html($this->useRecaptcha) ?>
<div class="form-group"> <div class="form-group">
<?php /* finc uses 'form-button-submit' */ ?> <?php /* finc uses 'form-button-submit' */ ?>
<input class="btn btn-primary" name="submit" type="submit" value="<?=$this->transEsc('form-button-submit')?>" /> <input class="btn btn-primary" name="submit" type="submit" value="<?=$this->transEsc('form-button-submit')?>" />
......
...@@ -33,7 +33,7 @@ $this->layout()->breadcrumbs = '<li>' . $this->searchMemory()->getLastSearchLink ...@@ -33,7 +33,7 @@ $this->layout()->breadcrumbs = '<li>' . $this->searchMemory()->getLastSearchLink
</div> </div>
<div class="form-group"> <div class="form-group">
<span> <span>
<?=$this->recaptcha()->html($this->useRecaptcha)?> <?=$this->captcha()->html($this->useRecaptcha)?>
</span> </span>
<input type="submit" class="btn btn-primary" role="button" name="submit" value="<?=$this->transEsc('Submit')?>"/> <input type="submit" class="btn btn-primary" role="button" name="submit" value="<?=$this->transEsc('Submit')?>"/>
<?= $this->externalLink( <?= $this->externalLink(
......
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