Commit ff4d9eb3 authored by Fx03nix's avatar Fx03nix

Update sign-up.jsp

Patch for solve problem with recaptcha over https
NewReCaptcha method in sing-up.jsp changed to newSecureReCaptcha - whatever you use, 9090 or 9091 - captcha always will comes via HTTPS
(http://community.igniterealtime.org/message/238655)
parent fdb71e4c
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
RegistrationPlugin plugin = (RegistrationPlugin) webManager.getXMPPServer().getPluginManager().getPlugin("registration"); RegistrationPlugin plugin = (RegistrationPlugin) webManager.getXMPPServer().getPluginManager().getPlugin("registration");
ReCaptcha reCaptcha = null; ReCaptcha reCaptcha = null;
if (plugin.reCaptchaEnabled()) { if (plugin.reCaptchaEnabled()) {
reCaptcha = ReCaptchaFactory.newReCaptcha( reCaptcha = ReCaptchaFactory.newSecureReCaptcha(
plugin.getReCaptchaPublicKey(), plugin.getReCaptchaPublicKey(),
plugin.getReCaptchaPrivateKey(), plugin.getReCaptchaPrivateKey(),
plugin.reCaptchaNoScript()); plugin.reCaptchaNoScript());
...@@ -267,4 +267,4 @@ document.f.username.focus(); ...@@ -267,4 +267,4 @@ document.f.username.focus();
<% } %> <% } %>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
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