From 0c6acb8ad32f56d94d5f19c0005e49b68a733b64 Mon Sep 17 00:00:00 2001
From: Robert Lange <robert.lange@uni-leipzig.de>
Date: Wed, 18 Jan 2023 14:10:40 +0100
Subject: [PATCH] refs #22747 [finc] adapt new captcha from (VUFIND-1379)
 (#1574) - addendum for templates

---
 themes/finc/templates/Auth/AbstractBase/resetpassword.phtml | 2 +-
 themes/finc/templates/myresearch/account.phtml              | 2 +-
 themes/finc/templates/myresearch/newpassword.phtml          | 2 +-
 themes/finc/templates/record/pdaform.phtml                  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/themes/finc/templates/Auth/AbstractBase/resetpassword.phtml b/themes/finc/templates/Auth/AbstractBase/resetpassword.phtml
index 4f04a7199c3..44dea0b322d 100644
--- a/themes/finc/templates/Auth/AbstractBase/resetpassword.phtml
+++ b/themes/finc/templates/Auth/AbstractBase/resetpassword.phtml
@@ -27,7 +27,7 @@ $this->headTitle($this->translate('Reset Password'));
     <label class="control-label"><?=$this->transEsc('Email')?>:</label>
     <input type="email" class="form-control" name="email" <?=isset($email) ? 'value="' . $email . '" ' : ''?>autocomplete="email" required/>
   </div>
-  <?=$this->captcha()->html($this->useRecaptcha)?>
+  <?=$this->captcha()->html($this->useCaptcha)?>
   <div class="form-group">
     <input class="btn btn-transparent" name="submit" type="submit" aria-label="submit form" value="<?=$this->transEsc('recovery_title')?>"/>
   </div>
diff --git a/themes/finc/templates/myresearch/account.phtml b/themes/finc/templates/myresearch/account.phtml
index 8dc4d8fb97b..3ad064d7335 100644
--- a/themes/finc/templates/myresearch/account.phtml
+++ b/themes/finc/templates/myresearch/account.phtml
@@ -13,7 +13,7 @@
 
 <form method="post" name="accountForm" id="accountForm" class="form-user-create" data-toggle="validator" role="form">
   <?=$this->auth()->getCreateFields()?>
-  <?=$this->captcha()->html($this->useRecaptcha) ?>
+  <?=$this->captcha()->html($this->useCaptcha) ?>
   <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>
     <?php /* finc uses 'form-button-submit' here */ ?>
diff --git a/themes/finc/templates/myresearch/newpassword.phtml b/themes/finc/templates/myresearch/newpassword.phtml
index 07ea5b7b73d..3c7f5bbe169 100644
--- a/themes/finc/templates/myresearch/newpassword.phtml
+++ b/themes/finc/templates/myresearch/newpassword.phtml
@@ -29,7 +29,7 @@
     <input type="hidden" value="<?=$this->escapeHtmlAttr($this->username) ?>" name="username"/>
     <input type="hidden" value="<?=$this->escapeHtmlAttr($this->auth_method) ?>" name="auth_method"/>
     <?=$this->auth()->getNewPasswordForm() ?>
-    <?=$this->captcha()->html($this->useRecaptcha) ?>
+    <?=$this->captcha()->html($this->useCaptcha) ?>
     <div class="form-group">
       <?php /* finc uses 'form-button-submit' */ ?>
       <input class="btn btn-primary" name="submit" type="submit" value="<?=$this->transEsc('form-button-submit')?>" />
diff --git a/themes/finc/templates/record/pdaform.phtml b/themes/finc/templates/record/pdaform.phtml
index 6a0c0299845..6b09422077c 100644
--- a/themes/finc/templates/record/pdaform.phtml
+++ b/themes/finc/templates/record/pdaform.phtml
@@ -33,7 +33,7 @@ $this->layout()->breadcrumbs = '<li>' . $this->searchMemory()->getLastSearchLink
   </div>
   <div class="form-group">
     <span>
-      <?=$this->captcha()->html($this->useRecaptcha)?>
+      <?=$this->captcha()->html($this->useCaptcha)?>
     </span>
     <input type="submit" class="btn btn-primary" role="button" name="submit" value="<?=$this->transEsc('Submit')?>"/>
     <?= $this->externalLink(
-- 
GitLab