Changeset 25315

Show
Ignore:
Timestamp:
28.03.2012 17:04:32 (8 years ago)
Author:
sjm84
Message:

Moved the private and public recaptcha keys to the siteconfig.xml file

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/pages/authen.xsl

    r25292 r25315  
    429429                                </tr> 
    430430                            </xsl:if> 
    431                             <xsl:if test="/page/pageResponse/authenticationNode/service/@operation = 'Register'"> 
     431                            <xsl:if test="/page/pageResponse/authenticationNode/service/@operation = 'Register' and /page/pageResponse/recaptcha/@privateKey and /page/pageResponse/recaptcha/@publicKey"> 
    432432                                <tr> 
    433433                                    <td colspan="2"> 
    434                                         <xsl:value-of disable-output-escaping="yes" select="util:reCAPTCHAimage()"/> 
     434                                        <xsl:value-of disable-output-escaping="yes" select="util:reCAPTCHAimage(/page/pageResponse/recaptcha/@publicKey, /page/pageResponse/recaptcha/@privateKey)"/> 
    435435                                    </td> 
    436436                                    <script type="text/javascript">