Author Topic: How to add captcha on CWP logins?  (Read 6018 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How to add captcha on CWP logins?
« on: July 27, 2019, 01:18:49 AM »
Hello Guys,

I was looking for a way to add google recaptcha or any kind of captcha on my CWP root (port 2031) and user login (port 2083).

So far I've managed to add Google Recapctha on the phpMyAdmin login but if you know how to add it on the hosting panel login would be really helpful.

Thanks.

Offline
*
Re: How to add captcha on CWP logins?
« Reply #1 on: April 02, 2021, 03:24:23 AM »
Hi

To user login,
change file:
     /usr/local/cwpsrv/var/services/users/cwp_theme/design/login.html

add
        <script src="https://www.google.com/recaptcha/api.js"></script>

and on the button
        <button type="submit"  id="btnsubmit"  class="btn btn-primary block full-width m-b g-recaptcha" data-sitekey="Site key"  onclick="return valite()">

Offline
*****
Re: How to add captcha on CWP logins?
« Reply #2 on: April 02, 2021, 03:31:07 PM »
You can also use two-pass authentication that is already integrated with CWPUser