Support » Plugin: Nextend Social Login and Register » google login domain restriction

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Laszlo

    (@laszloszalvak)

    Hi @yoscbd

    To be able to restrict the domain that the registration can work, you need to do some custom coding that we can not provide help for.
    But since we have already met with these kind of questions multiple times, we have already created a documentation where we show a sample code part for a similar use case:

    If you check the example code above, you will see what the code actually does is kind of opposite what you would like to achieve, as it prevents the registration when the person’s email domain matches with one of the domains appearing in the $banned_domains variable.

    So you need to modify the code slightly to make it return the error, when the email is not an in your allowed domains list.

    Best regards,
    Laszlo.

    Thread Starter yos.c.bd

    (@yoscbd)

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘google login domain restriction’ is closed to new replies.