tdmalone / slackemon

Inspired by Pokémon Go, now you can catch and battle Pokémon with your teammates on Slack!
GNU General Public License v3.0
10 stars 3 forks source link

Cron token #2

Closed Naramsim closed 7 years ago

Naramsim commented 7 years ago

define( 'CRON_TOKEN', 'XXXXXXXXXXXXXXXXXXXX' );

Could this variable be autogenerated randomly?

juz501 commented 7 years ago

I'm pretty sure it's only to prevent access to the cron endpoint directly. It can auto generated, but just needs to be used when you setup the cron script itself.

tdmalone commented 7 years ago

Yeah what @juz501 says is correct. You set it and then you use it. That's for 'traditional hosting' though. Cron is going to have to be handled differently if deployed on eg. Heroku... I need to do a bit more reading up on that.

Naramsim commented 7 years ago

Ok, thanks for the clarification