Control Web Panel
WebPanel => CentOS-WebPanel GUI => Topic started 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.
-
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()">
-
You can also use two-pass authentication that is already integrated with CWPUser