• Resolved scsedel

    (@scsedel)


    Hi,

    thank you for your superlight and super useful plugin.
    I’m trying to add a flyout login form in the main menu using the standard wp login form.
    Unfortunately, it redirects on the my account page without any login. Deactivating your plugin, the form works properly. So I’m figuring out to understand if there is a way to keep your plugin active and make my standard login form to work.
    Any suggestion? Does your premium version solve the issue?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Machine IT Services

    (@machineitsvcs)

    Hi. Great question! So both the free and premium versions of the plugin actually support this. To prevent redirect, on the flyout login form, add the URL GET parameter “interim-login” and it will prevent the redirect. This is used by WordPress when you log out while having other windows/tabs open on the Admin Dashboard, so you can log back in without the redirect. Let me know if this works for you! And please consider leaving a review ??

    Thread Starter scsedel

    (@scsedel)

    Hi!

    Thank you for your fast answer.
    I added the “?interim-login” parameter to the action and it properly logs in now, but doesn’t redirect on the account page or home now. It shows the “successfully logged in” message of the wp-login page.
    Maybe I need a step more? If you want to try, use the “demo – demo” credentials on https://biglietticirco.it
    Thank you

    Plugin Author Machine IT Services

    (@machineitsvcs)

    I don’t understand your question. Please provide more information. The interim-login argument should only be used on the flyout, not the other pages as it prevents redirect.

    Thread Starter scsedel

    (@scsedel)

    Hi,

    if you try to login with credentials
    user: demo
    pass: demo
    on https://biglietticirco.it

    by the flyout login, by clicking the login menu item in the main menu, after a successful login, you’ll be redirected to wp-login.php page showing the message “Successfully logged in”. That form has the “interim-login” parameter set in the action.

    Since I don’t want my customer to see the wp-login standard screen, I’m wondering if it is possible to not show that wp-login screen, skip it and go directly to myaccount page (or homepage) after a successful (interim-login) login.

    If you give a try, it’ll be suddenly clear. Anyway thank you for your support

    Plugin Author Machine IT Services

    (@machineitsvcs)

    I believe I know understand your concern. The login form posts to the wp-login.php page with the interim-login parameter. My suggestion is that you use a custom form to post to the wp-login.php page using Ajax and refresh the page if login is successful. I apologize but I cannot offer more support on this matter as it definitely falls under custom support/implementation which we don’t provide for the free plugin, although I’ve tried to get you this far. I might try to add an additional parameter for this feature in the future, but I’m unsure how you want this to behave. You’re posting to the wp-login.php page for login, and want to prevent redirect to allow login, but want to redirect on login. Just adding a redirect after successful login when using the interim-login parameter will break the popup login in the admin dashboard I mentioned before.

    Thread Starter scsedel

    (@scsedel)

    You was very kind indeed! Thank you for your support even on free plugin!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Standard WP login form redirects on my-account withouth login’ is closed to new replies.