• Resolved Creatium

    (@creatium)


    Hi,

    I noticed that when user logins to the page and goes back to login page, all the fields are shown to him as if he was logged out. Is that a normal behaviour? One would expect not to see login inputs and buttons, but something else (like “You’re logged in as… “.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    
    function redirect_to_tml_dashboard() {
        if ( is_user_logged_in() ) {
            wp_redirect( tml_get_action_url( 'dashboard' ) );
            exit;
        }
    }
    add_action( 'tml_action_login', 'redirect_to_tml_dashboard' );
    add_action( 'tml_action_register', 'redirect_to_tml_dashboard' );
    
    Thread Starter Creatium

    (@creatium)

    Thank you! Shouldn’t this be a default?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Login page for logged in users’ is closed to new replies.