Foro de elhacker.net

Programación => Java => Mensaje iniciado por: Beginner Web en 7 Noviembre 2019, 12:23 pm



Título: Captcha, ERROR for site owner: Invalid site key
Publicado por: Beginner Web en 7 Noviembre 2019, 12:23 pm
Error en el captcha, primefaces

Hola me sale el siguiente error en mi captcha
(https://i.ibb.co/7XKvHRJ/20191023-234126.jpg)

Puede que sea que no tengo las claves y como obtengo dichas claves? :(

Este es el web.xml

Código
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
  3.    <context-param>
  4.        <param-name>javax.faces.PROJECT_STAGE</param-name>
  5.        <param-value>Development</param-value>
  6.    </context-param>
  7.  
  8.    <context-param>
  9.        <param-name>primefaces.PRIVATE_CAPTCHA_KEY</param-name>
  10.        <param-value>6Lc8h8EUAAAAAPOHnFA-z-m63ancSpzC57SkaSvp
  11.        </param-value>
  12.    </context-param>
  13.    <context-param>
  14.        <param-name>primefaces.PUBLIC_CAPTCHA_KEY</param-name>
  15.        <param-value>6Lc8h8EUAAAAAAb46FzgNLPsWYiPrfmA_yuo_K9U
  16.        </param-value>
  17.    </context-param>
  18.  
  19.    <servlet>
  20.        <servlet-name>Faces Servlet</servlet-name>
  21.        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  22.        <load-on-startup>1</load-on-startup>
  23.    </servlet>
  24.    <servlet-mapping>
  25.        <servlet-name>Faces Servlet</servlet-name>
  26.        <url-pattern>/faces/*</url-pattern>
  27.    </servlet-mapping>
  28.    <session-config>
  29.        <session-timeout>
  30.            30
  31.        </session-timeout>
  32.    </session-config>
  33.    <welcome-file-list>
  34.        <welcome-file>faces/index.xhtml</welcome-file>
  35.    </welcome-file-list>
  36. </web-app>
  37.