Add repositories check to new users to battle spam
driesvints opened this issue · 0 comments
driesvints commented
We're getting quite a few spam signups again lately. One check we're already doing is to see if the new signup isn't too young.
Another step we can take is to see if the account doesn't have any repositories which could be an indication of a spam account. We'd have to do add the check here:
https://github.com/laravelio/laravel.io/blob/main/app/Http/Controllers/Auth/GithubController.php#L69
And add a hasPublicRepositories method on the GithubUser class to check if the user indeed has any public repos. Most likely this will involve an API call to GitHub over the REST or GraphQL API using the Laravel HTTP client. Additionally, we'll have to adjust existing tests and add new ones.