froger-me / wp-remote-users-sync

Synchronise users across WordPress websites
GNU General Public License v3.0
72 stars 33 forks source link

Automatic User Approval Across Subdomains on Account Creation wp-remote-users-sync #73

Open CarlitoDevDreamer opened 1 year ago

CarlitoDevDreamer commented 1 year ago

Issue Description: I have 3 subdomains, www.example.com, www.sub1.example.com and www.sub2.example.com.

When a user creates an account on the "main" website www.example.com, the user is automatically approved on other subdomains such as www.sub1.example.com and www.sub2.example.com.

This user approval process occurs without the need for the user to confirm or verify their registration via the email sent to their inbox.

If the user makes it's registration on the "main" website www.example.com it is automatically approved on the other 2 subdomains www.sub1.example.com and www.sub2.example.com, but it is not automatically approved on the "main" website www.example.com.

Also, if the user logins on the www.sub1.example.com and www.sub2.example.com it will be automatically logged in to the "main" website www.example.com even if it is not approved.

I really appreciate any tips you can give me!

[I will try to keep solving this issue on my own and I'll try to keep this updated]

Plugin Name: WP-Remote-Users-sync

Plugin Version: [1.2.13]

WordPress Version: [6.3]

Current PHP version: [8.0]

CarlitoDevDreamer commented 1 year ago

I ended up solving the issue, and as soon as I have the chance, I'll soon provide a solution! And then I'll close the issue.

wmasat commented 9 months ago

I ended up solving the issue, and as soon as I have the chance, I'll soon provide a solution! And then I'll close the issue.

Please share the solution to this problem, I need it very much

CarlitoDevDreamer commented 9 months ago

I ended up solving the issue, and as soon as I have the chance, I'll soon provide a solution! And then I'll close the issue.

Please share the solution to this problem, I need it very much

Hello!

I ran several additional tests, and it wasn't working properly in some ways, which I can't remember right now.

I made a few tweaks, and it ended up working well but not perfectly. Consequently, I decided to abandon the idea of using a plugin and am now planning to implement a custom-developed solution in the future...

However, I did find a way for it to work well but with a few issues, such as the username and other user information not syncing properly.

I recommend making some adjustments to the "List of metadata to accept (leave empty to accept all):" and "List of roles to accept (leave empty to accept all):" (and transfer as well) fields. Keep trying different configurations until you find a setup that is acceptable for you. (approve key and status metadata related parameters) wp remote users sync )

I can attempt to take a closer look and provide further assistance, but it's not guaranteed.

Additionally, if possible, please provide more information, such as how many sites you plan to sync, so I can offer more targeted help.

I apologize for not being able to provide a better solution. I initially thought I had one, but after running more tests, I discovered that it wasn't working as well as I thought.