The plugin synchronizes users with a main site, allowing you to access all sites where the plugin is installed with the same credentials.
- One site must be configured as a server, while the other sites must be configured as clients.
- Users registered on the server site can now access client sites using the same login credentials.
- In the client site, if the user does not exist, a new user is created with the data coming from the server. You can customize the data to be saved on the client site through several hooks described later.
- If the user already exists (checks the username) then the plugin updates the user information.
- If the user exists on the client, but not on the server, the plugin blocks access by changing the password to the user saved on the client.
- For security reasons the plugin does not synchronize administrators.
- When you click on recover password from a client site you are redirected to the server site to recover your password. Once you have recovered the password you return to the client site login. When you try to register a user from a client site you are redirected to the server site to register the user.
- If a user has logged in to a client site and logs in again through cookies, then without logging in again the system updates the user data with the server data once a day. If the user no longer exists on the server, he or she is logged out of the client site.
- Client users are never deleted even if they are no longer present on the server.
- Be careful if a user already exists on the client with the same email, but different user login, the user is not logged in.
The plugin must be installed on two or more sites. The first site must be configured as a server, while the others as clients. Remember to save your settings once you have configured the plugin.
Server:
Click on the "Server" box and save.
Client:
Copy the token generated by the server and paste it into the client's "Token" box. Copy the server URL into the URL. Save.
When you save the client settings it tries to connect to the server to verify that everything is working correctly. If the server does not have active htaccess, the API address changes and the following code must be applied to the client's functions.php:
add_filter( 'sucw-htaccess', 'sucw_htaccess' ); function sucw_htaccess() { return false; }