• Hello,

    After logging in I want to redirect the user to a download page. But this does not always work. Especially after registering and trying to log in immediately after that it redirects to the home page. But if I try to log in as an user that made earlier it sends me to the download page.

    Could you tell me how I can fix this?

    https://wordpress.org/plugins/front-end-only-users/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Vinkdtp,

    Is the login page on the same page as the download? The plugin uses cookies to save login information, which are only accessible on a page reload.

    Thread Starter vinkdtp

    (@vinkdtp)

    No, I have 3 different pages.

    – Login page
    – Register page
    – Download page

    So the visitors are directed to another page.

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Would you mind posting a link so we can take a look?

    Well, I can give you an example.
    We have a login page that needs to redirect to member resources page after successful login.
    http://ocadultdayservices.org/wp/member-login/

    Center login code:
    <h3>Login Form:</h3>
    [login redirect_page=”http://ocadultdayservices.org/wp/member-resources-2″%5D

    <h3>Forgot your password?</h3>
    [forgot-password redirect_page=”http://ocadultdayservices.org/wp/forgot-password”%5D

    ——————————–
    The member resources page has a login, too if they come in that way.

    Forgot password page doesn’t redirect to the confirm/reset page.

    http://ocadultdayservices.org/wp/member-resources-2/
    Here is the code:
    [restricted minimum_level=’1”…content’/restricted]
    [wpfilebase tag=list showcats=1 pagenav=1 /]
    [/restricted]

    If you are not seeing the list of resources above, you must be logged in to view it.
    <h3>Login Form:</h3>
    [login redirect_page=”http://ocadultdayservices.org/wp/member-login/”%5D

    —————————————
    Here is the confirm forgot password:
    http://ocadultdayservices.org/wp/confirm-forgot-password/

    [confirm-forgot-password reset_email_url=”http://ocadultservices.org/wp/member-resources-2/”%5D

    I set up temporary SMTP with my own account through Google for testing only.

    We are expecting this to happen:
    Click on either CENTER LOGIN or MEMBER RESOURCES to login.
    Login and be taken to the same MEMBER RESOURCES page with list of documents showing now after login.

    If you don’t remember your password, from CENTER LOGIN page you can click to RESET/FORGOT password.
    There, you enter your email and should be given the reset form.

    We are not getting those steps. On FORGOT PASSWORD page when I type in my email and click, It’s the same page that jumps down and no email comes through.

    We are not redirected to the CONFIRM RESET page.
    CONFIRM RESET page is supposed to redirect to MEMBER RESOURCES page after you reset.

    What am I missing?

    Plugin Author Rustaurius

    (@rustaurius)

    Hi Su,

    For the redirects, can you try switching to single quotes instead of double quotes? Some users had an issue where the redirects weren’t working correctly with double quotes a while back, so hopefully that takes care of a couple of them.

    For the emails, can you verify that all of the settings are correct? When the emails aren’t being set out, it can often be a problem with the “Port” being used (or the hostname, username, password, etc. not being correct).

    Hi Rus,
    It didn’t work. Single quotes made not difference. When I go to the http://ocadultdayservices.org/wp/forgot-password/ and type in my email address, click reset, it just jumps me down the page and doesn’t return me to the [forgot-password reset_email_url=’http://ocadultdayservices.org/wp/confirm-forgot-password/’%5D
    page.
    Page resovles but the code doesn’t send you to that form.
    Should I instead have a message on that page after they hit submit that only shows then telling them to check their email? Is that why it jumps down? Documentation doesn’t have this in there.

    Thank you for help.

    Plugin Author Rustaurius

    (@rustaurius)

    Hi Su,

    Is that form built using the shortcode? It doesn’t look like it when taking a peek at the code itself. You’d want the [forgot-password] shortcode on one page, then the [confirm-forgot-password] shortcode on another page. Whatever page the “confirm” shortcode is on should go into the [forgot-password] shortcode as the “reset_email_url”.

    I had to go with a different solution. I’ll close this. Thank you. Timing was important. Went with “member” plugin for our needs. I’m sure you have a great plugin, it didn’t fit us and didn’t function as expected.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Login redirect not always working’ is closed to new replies.