• Resolved auther61

    (@auther61)


    Hello,

    Is there a way to configure the plugin to not allow Google authentication with gmail accounts, but rather only with business-domains?
    For example, if a user tries to login with test@gmail.com, it will show an error message that the domain isn’t allowed. If the user tries to login with test@mycompany.com, it will be allowed.

    If this capability is not supported, can you please provide some general guidelines as to how I can customise the plugin for this functionality?

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Support Laszlo

    (@laszloszalvak)

    Hi @auther61

    We don’t have a built in option for that, but we provide multiple filters what you can use to modify the way Nextend Social Login handles the users.

    For example we have the “nsl_registration_user_data” filter, which could be used for either overriding some user details or you could use it to prevent the registration as well, if you return an error in its 3rd parameter.

    In our developer documentation we have an example for its usage, and the example is exactly what you are looking for. See the “Prevent registration with certain email domain” section: https://nextendweb.com/nextend-social-login-docs/backend-developer/#prevent-registration

    However please note that, we can not provide support for custom coding.

    Best regards,
    Laszlo.

Viewing 1 replies (of 1 total)

The topic ‘Do not allow @gmail authentication’ is closed to new replies.