Control Web Panel

WebPanel => CentOS-WebPanel GUI => Topic started by: yush91 on July 27, 2019, 01:18:49 AM

Title: How to add captcha on CWP logins?
Post by: yush91 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.
Title: Re: How to add captcha on CWP logins?
Post by: deimon777 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()">
Title: Re: How to add captcha on CWP logins?
Post by: josemnunez on April 02, 2021, 03:31:07 PM
You can also use two-pass authentication that is already integrated with CWPUser