Home Forums Plugin Support WP User Frontend Pro Redirect not logged in users

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  towhid 3 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #44619

    Alexandre
    Member
    Post count: 73

    Hi

    We have a problem when not logged in users try to reach directly the “publish” page or the “dashboard” page

    it shows them a login form but if they enter a wrong username or password then they are redirected to wp-login.php…

    So to avoid this, the solution would be that IF they are not logged in and try to reach any of theses pages :

    – publish
    – dashboard
    – profile

    THEN they are redirected to the wpuf login page

    How can i set this redirect ?

    Tx a lot

    Alex

    #44668

    towhid
    Participant
    Post count: 4505

    Hello Alexandre,

    I have reproduced this issue but failed. After click on the dashboard page, it redirects me to the login page (I am not yet login). But when I type the wrong username and password the site do not enroll me.

    Can you please shared a screenshot for me.

    Thanks.

    #44677

    Alexandre
    Member
    Post count: 73
    This reply has been marked as private.
    #44678

    Alexandre
    Member
    Post count: 73

    Ok we just found a solution for those having the same issue :

    Dashboard page :

    File wpuf/class/frontend-dashboard :

    Delete line 37 :

    wp_login_form();

    Post page :

    File wpuf/class/render-form :

    Delete line 268 :

    wp_login_form();

    #44752

    towhid
    Participant
    Post count: 4505

    Hello Alexandre,

    I am very happy to know that the problem has solved for you. I am going to mark this topic as resolved and closed.

    Thanks.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Redirect not logged in users’ is closed to new replies.