Liviu
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Membership] wp_login_failed event is not triggeredmay lead to disappointment
No worries, no disappointment.
Thanks.
Forum: Plugins
In reply to: [Simple Membership] wp_login_failed event is not triggeredAnother difference.
When the input fields (login name / password) contain only white-spaces (one or more), wp login does not trigger ‘wp_login_failed’. [swpm_login_form]?triggers ‘swpm_login_failed’.
Could also bring this in line with the standard wp login behaviour, that is validate first before attempting to login.
Greetings from Liviu
Forum: Plugins
In reply to: [Simple Membership] wp_login_failed event is not triggeredJust occurred to me, when the inputs (login name / password) are empty, there is a difference between triggering ‘wp_login_failed’ and ‘swpm_login_failed’.
Logins with empty inputs, initiated from the standard wp login page, show user “Please fill this field” without triggering the ‘wp_failed_login’. The input fields validation is done first, only when both input fields are not empty, a login attempt is initiated.
[swpm_login_form] login is different. When one of the input fields are empty, ‘swpm_login_failed’ is triggered. It seems that [swpm_login_form] does not validate first the non-empty inputs, before attempting login.
Maybe you could bring the behaviour of inputs validation of [swpm_login_form] in line with the wp login behaviour. That is: attempt to login when both fields are non-empty.
Greetings from Liviu
Forum: Plugins
In reply to: [Simple Membership] wp_login_failed event is not triggeredHallo?@mbrsolution,
Thank you for creating the update.
the login failed hook was getting triggered for admin user entries that didn’t have a corresponding SWPM user
Yes, that is what I also thought.
Please find below my test results for the patch.
Test 1: PASS (was fail)
Successful login in the wp-admin dashbord initiated from the standard wp login page, by an site administrator role, does not trigger ‘swpm_login_failed’, does not trigger ‘wp_login_failed’, as expected.
Test 2: PASS
Equal to simple-membership previous version.
Test 3: PASS (was fail)
Failed login in the wp-admin dashbord initiated from the standard wp login page by an site administrator (wrong password) triggers the ‘wp_login_failed’ hook, as expected. ‘swpm_login_failed’ hook is not triggered, as expected.
Test 4: PASS
Equal to simple-membership previous version.
Test 5: PASS
Equal to simple-membership previous version.
Conclusion
All tests pass!
Thanks for fixing the issues!
Greetings from Liviu
Forum: Plugins
In reply to: [Simple Membership] wp_login_failed event is not triggeredThanks for the update!
On my site, site administrators cannot login as swpm members via the?[swpm_login_form], and I would like to keep it that way, for security reasons.
Please find below my test results for the simple-membership version 4.5.0
Test 1: FAIL
Successful login in the wp-admin dashbord initiated from the standard wp login page, by an site administrator role, unexpectedly triggers the swpm_login_failed hook. wp_login_failed hook is not triggered, as expected.
Test 2: PASS
Successful login in the wp-admin dashbord initiated from the standard wp login page, by an swpm member does not trigger the swpm_login_failed hook, as expected.
TEST 3: FAIL
Failed login in the wp-admin dashbord initiated from the standard wp login page by an site administrator (wrong password) triggers the swpm_login_failed hook and also triggers the wp_login_failed hook. I did not expect here both hooks to be triggered, I expected just one hook to be triggered.?
Test 4: PASS
Failed login via the?[swpm_login_form] by a non-existing member correctly triggered by the swpm_login_failed hook. wp_login_failed hook is not triggered.
Test 5: Pass
Failed login via the?[swpm_login_form] by an existing member correctly triggered by the swpm_login_failed hook. wp_login_failed hook is not triggered.
Conclusion
2 out of 5 tests failed.
Test 1 shows really a bug and should be solved.
Test 3 shown inconsistencies with the rest of the cases. Either (1) suppress the triggering of wp_login_failed hook as in the rest of the swpm cases or (2) do not trigger the swpm_login_failed hook.
Greetings from Liviu
Forum: Plugins
In reply to: [Simple Membership] wp_login_failed event is not triggeredHallo?@mbrsolution,
Were the dev team able to reproduce my issue? I’m really curious.
I have retested the ‘Plugin Conflict Test’ with the latest WordPress version 6.6.1. that just came out, running Twenty Twenty-One theme => the issue is still present.
Greetings from Liviu
Forum: Plugins
In reply to: [Simple Membership] wp_login_failed event is not triggeredThanks! Looking forward to hearing from you.
Greetings
Forum: Plugins
In reply to: [Simple Membership] wp_login_failed event is not triggeredI have done the Plugin Conflict Test (as indicated in the link above), I have disabled all the plugins except two: the Simple-Membership plugin and my own little plugin:
function efpf_on_login_failed($username, $error) {
? ?error_log('Fired!');
}
add_action('wp_login_failed', 'efpf_on_login_failed', 10, 2);I have also switched to WordPress Twenty Twenty-One?theme.
The issue remains: wp_login_failed hook is not fired when I fail to login via the [swpm_login_form]. And the wp_login_failed hook is fired when I fail to login via the wordpress wp-admin page.
By the way, the wp_login and wp_logout hooks always work with the Simple-Membership plugin and with the [swpm_login_form]:
function efpf_on_user_login( $user_login, $user ) {
error_log('Logged-in!');
}
add_action('wp_login', 'efpf_on_user_login', 10, 2);Any ideas?
Greetings from Liviu
Forum: Plugins
In reply to: [Simple Membership] wp_login_failed event is not triggeredThank you for your reply.
I have the following add-ons: SWPM Misc Shortcodes, SWPM Partial Protection, SWPM Show Member Info.
Yes, I use [swpm_login_form] that manages the login on my site.
Give me a bit of time to do some testing later today, by temporarily removing the [swpm_login_form], and also testing for plugin conflict, with the steps from the link above.
I’ll get back to you with my test results.
Greetings from Liviu
Forum: Plugins
In reply to: [Simple Membership] ‘Language’ in the swpm registration formThanks! Looks like what I need.
Greetings from Liviu
Forum: Plugins
In reply to: [Simple Membership] Logged-in status out of syncHallo?@mbrsolution,
Just to let you know, the issue has not occurred anymore!
I’ve closed the ticket.
Greetings from Liviu
Forum: Plugins
In reply to: [Simple Membership] Logged-in status out of syncHallo @mbrsolution,
My “Force WP User Synchronization” setting was not active!
I have switched it on now.
Let me monitor it for few days. When no issues found, I will close the ticket.
Thank you for your message.
Greetings from Liviu
Great! Thanks.
Hallo Sébastien,
I have tried myself but could not find any block in the site editor block library
Forget my question, I have found the way to add my classic menu.
For anybody reading this, select the ‘Navigation’ block in the editor, then ‘List View’ then click on the 3 stacked dots, corresponding to the ‘Menu’, then in the pull-down menu you can select the classic menu’s (if you have some).
Greetings
Hallo Sébastien,
Thanks for your reply.
add them through a block in the site editor
Would you please point me in the right direction, on how to do that?
I have tried myself but could not find any block in the site editor block library. I have inserted the ‘Navigation’ block but that one does not contain my own created menu.
Greetings