• Resolved dblooper

    (@dblooper)


    Hey, I need to know how to prevent users from being registered when they use the login button, if they don’t have an account.

    I’m being prevented from being added to the app store because when a user goes to login, if they are not already registered, they are auto registered which then redirects them to my payment link.

    How can i prevent users from being registered if they try to login without an account?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Robert

    (@robertnextendweb)

    Hi @dblooper!

    Go to Nextend Social Login > Global Settings > General tab > Membership:
    https://nextendweb.com/nextend-social-login-docs/global-settings/
    set this to “Disabled” and that should solve this problem.

    Thread Starter dblooper

    (@dblooper)

    But I still need users to be able to register. I just need 2 different buttons, one for only registration and one for only login.

    Plugin Support Robert

    (@robertnextendweb)

    No matter where you press the social login button, it can be used for registering and login. So if you don’t want users to register in your login form, or vica versa, then you will need to do so with custom coding.
    Please note that we cannot provide support for custom coding and the problems that come as a result of these custom codes.

    But basically what you should do is that you should be able to distinguish the register form from the login form according to some logic. For this, you could, for example, publish the buttons manually with a shortcode in a way that you set a unique tracker data for the login form, based on which you will know that it is a login form:
    https://nextendweb.com/nextend-social-login-docs/backend-developer/#trackerdata
    and you could hook a custom function to the “nsl_is_register_allowed” filter (you can find its parameters in the documentation above), and based on the tracker data, it would return the original value, or false (if it is false, the registration will be blocked).

    Besides this, the:

    • nsl_disabled_register_redirect_url
    • nsl_disabled_register_error_message

    filters can be used to redirect the user somewhere else after they are blocked from registering, or to override the error message.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Prevent Google registration with login button.’ is closed to new replies.