← Back to Social Login Support
valentin
Hey,
Thanks a lot for your plugin, very helpful! I was wondering if it was possible to restrict the creation of new users and only use your plugin for existing users to log in?
Many thanks
valentin
Ok I'm getting there,
I have update the file classes/UserManager.php to return user=null instead of creating the user, and then on the routes.php I've added a condition to check if the user is null and if it is null, to redirect to the login page and add an error message.
I don't know if it is the best way to do it but it seems to be working.
1-2 of 2