- This topic has 2 replies, 2 voices, and was last updated 8 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Using SWPM login form inside of a modal – allow auth check via Ajax?
Hi, I’m trying to implement the Simple Membership login form inside of a modal- overall, it works fine, but if one inputs the wrong username or password, the page refreshes and one needs to reopen the modal in order to see that the login failed. While I could just manually trigger the modal to open when login fails, I’m wondering if there’s a way to modify the login form submission such that it confirms authentication before reloading the entire page, and thus would just display the error message, in place, via an Ajax request? Thanks for any guidance here!
By default, the Simple Membership login form uses a standard WordPress form submission. That’s why when a login attempt fails, the page refreshes and you only see the error message after the reload.
Unfortunately, the plugin does not currently support AJAX-based login submissions out of the box. That’s why when you put the login form inside a modal, failed login attempts force the modal to close, requiring users to reopen it.
Your best option is to open a paid support ticket.
https://simple-membership-plugin.com/paid-support-simple-membership-plugin/
Thank you for your reply, that makes sense. I’ll reach out to paid support to see if they can assist with a solution.