Title: Do not allow @gmail authentication
Last modified: October 28, 2020

---

# Do not allow @gmail authentication

 *  Resolved [auther61](https://wordpress.org/support/users/auther61/)
 * (@auther61)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/do-not-allow-gmail-authentication/)
 * 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](https://wordpress.org/support/topic/do-not-allow-gmail-authentication/test@gmail.com?output_format=md),
   it will show an error message that the domain isn’t allowed. If the user tries
   to login with [test@mycompany.com](https://wordpress.org/support/topic/do-not-allow-gmail-authentication/test@mycompany.com?output_format=md),
   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](https://wordpress.org/support/users/laszloszalvak/)
 * (@laszloszalvak)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/do-not-allow-gmail-authentication/#post-13594976)
 * Hi [@auther61](https://wordpress.org/support/users/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](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.

 * ![](https://ps.w.org/nextend-facebook-connect/assets/icon.svg?rev=3336394)
 * [Nextend Social Login and Register](https://wordpress.org/plugins/nextend-facebook-connect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextend-facebook-connect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextend-facebook-connect/)
 * [Active Topics](https://wordpress.org/support/plugin/nextend-facebook-connect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextend-facebook-connect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextend-facebook-connect/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Laszlo](https://wordpress.org/support/users/laszloszalvak/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/do-not-allow-gmail-authentication/#post-13594976)
 * Status: resolved