passwords problem
-
hello, with respect
i have no problem with sync users in 2 sites, just have a problem with user passwords!if some user register and login in my shop (based on woocommerce / another wordpress), new user cant login to main site (wordpress) with woocommerce password!
but if user register and login to main site, user can login to woocommerce too!note: passwords checkboxes in plugin options are checked. and both sites are https.
shop site for example: mysite.com/shop
main site for example: mysite.comhow can i solve that problem?
Thank you.
-
Hello @visionha !
I just tested with 2 WordPress sites, default themes and plugins (aside from WooCommerce with Storefront), and a similar setup as described, both with the default registration form from WordPress and the checkout form, with success.
I have Login, Logout, Create, Update and Password User Actions enabled in both directions.Have you tested creating a user with the main form and the checkout form yourself, with logs enabled? You should get something like below – if you don’t it might be a settings issue, or a conflict with a third-party plugin (in the latter case, you should test with plugins disabled, then enable them one by one to narrow down to the culprit).
My log (obfuscated for obvious reasons):
2020-08-19 13:50:05 - Info - Token created: site https://mysite.com/ - action "Create" 2020-08-19 13:50:05 - Success - Access granted - https://mysite.com/shop 2020-08-19 13:50:05 - Success - Create action - successfully created user "testing.shop" from https://mysite.com/shop. Array ( [data] => Array ( [user_login] => testing.shop [user_nicename] => testing-shop [user_url] => [user_email] => [email protected] [display_name] => testing shop [nickname] => testing.shop [first_name] => testing [last_name] => shop [description] => [rich_editing] => true [syntax_highlighting] => true [comment_shortcuts] => false [admin_color] => fresh [use_ssl] => 0 [user_registered] => 2020-08-19 13:50:04 [show_admin_bar_front] => true [locale] => [user_pass] => ** HIDDEN ** [roles] => Array ( ) ) )You can see the
[user_pass] => ** HIDDEN **is transferred over at creation (it will always show** HIDDEN **– passwords are NEVER accessible to other users with WPRUS). Please let me know in your case (don’t forget to obfuscate the data when posting here!) and we can try to troubleshoot further if needed.-
This reply was modified 5 years, 9 months ago by
Alexandre Froger.
Thank you for your response,
logs from main site after i make user from shop:2020-08-19 14:48:00 - Info - Token created: site https://mysite.com - action "Create" 2020-08-19 14:48:00 - Info - Token created: site https://mysite.com - action "Create" 2020-08-19 14:48:01 - Success - Access granted - https://mysite.com/shop 2020-08-19 14:48:01 - Success - Create action - successfully created user "omidtest" from https://mysite.com/shop. Array ( [data] => Array ( [user_login] => omidtest [user_nicename] => omidtest [user_url] => [user_email] => [email protected] [display_name] => omidtest [nickname] => omidtest [first_name] => [last_name] => [description] => [rich_editing] => true [syntax_highlighting] => true [comment_shortcuts] => false [admin_color] => fresh [use_ssl] => 0 [user_registered] => 2020-08-19 14:47:58 [show_admin_bar_front] => true [locale] => [user_pass] => ** HIDDEN ** [roles] => Array ( ) ) )and from shop log:
2020-08-19 14:47:36 - Info - Delete action - firing action for username "omidtest" 2020-08-19 14:47:58 - Info - Create action - firing action for username "omidtest" 2020-08-19 14:47:58 - Info - Renewing token for https://mysite.com 2020-08-19 14:47:59 - Warning - Failed to renew token for https://mysite.com - retrying...logs when i change password from main:
2020-08-19 15:06:08 - Info - Update action - firing action for username "omidtest" 2020-08-19 15:06:08 - Info - Renewing token for https://mysite.com/shop 2020-08-19 15:06:09 - Warning - Failed to renew token for https://mysite.com/shop - retrying...note: tokens are the same for both sites.
So from your log, I see the user
omidtestgot created on the main site, and that the password was transferred. Have you tried to login with this user and the chosen password on the main site?If you did and could log in, great – there wouldn’t seem to be any issue.
I you did and could not log in, it would be the moment to try with default theme and plugins, confirm it’s not working, and then activate plugin one by one and try each time to see what the conflict is ;).
The other logs you’re showing me are indicating potential communication issues between the sites, but that’s not significant here (“retrying” is a good thing, failure is when things get worrisome), and your core problem is: Users are created on both sites, but passwords are not working.
Passwords are transferred at creation and update, and the log indicates creation did work, so we’ll focus on that.yes, i make some user in main site and then try to login, and i can login with this user and password to main and shop.
but when i make user in shop, i can login just in shop with password, and when i wanna login with that user and password to main site, wrong password shows up! :d
Alright, now that it’s confirmed that you still have the issue even if the logs show the password was transferred, the next step is to try again with all plugins deactivated except for WooCommerce and WP Remote Users Sync on both sites, TwentyTwenty theme on the main site, and StoreFront theme on the shop site.
This may seem like a heavy operation to undertake, but it is the only way for me to help to eliminate the possibility of plugin/theme conflict.
If the problem persists in a default environment, this would mean that some server settings could be the cause of the issue (and I wouldn’t be able to help more on this forum – we’d have to continue on Github).
If the problem disappears with the default environment, this means we’ll have to find which plugin/theme is the source of the issue by enabling them 1 by 1 and test at each step until it fails, to identify the source.
-
This reply was modified 5 years, 9 months ago by
Alexandre Froger.
hello, thank you for your time.
i find the problem, in shop, Digital Goods for WooCommerce Checkout Pro plugin!
right now everythings is okay, but another little thing :d
when i login in main site, it cant auto login in shop, and user must login again in shop too,
but if user login in shop, user auto login to main too.
i hope you undrestand what i mean!shop logs:
2020-08-20 00:58:33 - Info - Logout action - enqueueing asynchronous actions for username "omidtest" 2020-08-20 00:58:34 - Info - Renewing token for https://mysite.com/ 2020-08-20 00:58:35 - Warning - Failed to renew token for https://mysite.com/ - retrying... 2020-08-20 00:58:36 - Info - Added https://mysite.com/wprus/logout/ async URL in wp_footermain logs:
2020-08-20 00:58:36 - Info - Token created: site https://mysite.com/ - action "Logout" 2020-08-20 00:58:36 - Info - Token created: site https://mysite.com/ - action "Logout" 2020-08-20 00:58:38 - Success - Access granted - https://mysite.com/shop 2020-08-20 00:58:38 - Success - Logout action - successfully logged out user "omidtest" from https://mysite.com/shop.and do you have some idea why Digital Goods for WooCommerce Checkout Pro have conflict? i need this plugin too, if not, then i should find another way for Digital Goods for WooCommerce Checkout Pro.
thank you.Hi @visionha !
Glad to know you pinpointed the source! Digital Goods for WooCommerce Checkout Pro is a plugin I cannot access because it is a commercial one not on WordPress plugin repository. If you wish me to get involved further with troubleshooting this, we’ll have to take that discussion on a separate platform (Github issue).
Regarding the login/logout question, I see only logout in the logs. It doesn’t seem I have enough information. In any case, please open a separate issue if you need – I will mark this one as resolved for now.
about checkout plugin i find and use Digital Download Goods Checkout for WooCommerce
and its fine.thank you for your great support @frogerme
best wishes for you. -
This reply was modified 5 years, 9 months ago by
The topic ‘passwords problem’ is closed to new replies.