Skip to content

Feature request - Disable social routes if social login is disabled #998

@hacheraw

Description

@hacheraw

Could you only add social related routes if social login is enabled?

Something like what you do with oauthPath in routes.php#L38.

I was about to make a PR with

if (Configure::read('Users.social.login')) {
    // Social routes
}

but there are several routes in several lines and I don't know if I can move them to only do an IF.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions