-
Notifications
You must be signed in to change notification settings - Fork 78
Enable captcha support
There is support for 2 different ways to show a captcha graph:
- Search PokemonGo-Map
workerstatus
DB for accounts which triggered a captcha - Use 2captcha API to get amount of solved captchas
- First edit your variable.json to activate captcha graph on Dashbord (
"captcha_support" : true
) - This entry will add the captcha graph and will query the database when cron run to see how many accounts are stuck behind captchas.
-
First of all do step 1.
-
Then you have to install and enable
php-curl
. The package is calledphp5-curl
orphp7-curl
. -
If you use 2captcha API you need to activate captchas and set your API key in /core/json/variable.secret.json by setting
"captcha_key" : "Your2CaptchaAPIKey"
-
BE SURE TO PROTECT THIS FILE FROM OUTSIDE !!! (.htaccess or any other solution. We provide a .htaccess for Apache 2.4+)
-
If your captcha.stats.json file is empty the cron script will query the last 7 days.
To create the captcha graph our crontab script we'll need to create a JSON file (captcha.stas.json) with all datas. This file will be added in core/json/ so ensure your crontab user can read/write in the directory.