Skip to content

Add repositories check to new users to battle spam #967

@driesvints

Description

@driesvints

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions