• Resolved michaeldoroba

    (@michaeldoroba)


    WE have a hybred website where we use a single account to log anyone in when within our domain. If you log into the site from the internet you’ll use a MFA login. I’m having an issue where this internal logon account is getting logged out. Is there a way to bypass the timeout for a single account?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Deepen Bajracharya

    (@j_3rk)

    @michaeldoroba

    You can bypass the timeout for a certain account or user by using following code to your theme’s functions.php file

    //Dequeue JavaScripts
    function dequeue_scripts_ina_202208() {
    	if ( get_current_user_id() == 1 ) {
    		wp_dequeue_script( 'inactive-logout' );
    
                    // Remove below # if you have pro version active. Do not do anything if you do not have the pro installed.
    		#wp_dequeue_script( 'ina-logout-addon-js' );
    	}
    }
    
    add_action( 'wp_print_scripts', 'dequeue_scripts_ina_202208' );

    Change “1” to the user ID – User ID of the user where you want to disable the inactive logouts.

    Thread Starter michaeldoroba

    (@michaeldoroba)

    Thanks I’ll give it a try.
    I did find another way around…. I created a new role and checked the box for “Disable Inactive Logout” option under the “Role Based Option” tab, applied this to the internal user. Worked like a charm.

    Now…. When an internet account times out and is redirected to the login page the user clicks on the login link and the system logs the user back in without re-authenticating. All internet users have a role that has a 15min idle time, “Disable Inactive Logout” isn’t checked. Am I missing something?

    BTW…I did purchase the Pro version.

    • This reply was modified 3 years, 9 months ago by michaeldoroba.
    Plugin Author Deepen Bajracharya

    (@j_3rk)

    You seem to have reached out through email as well so we’ll debug through there, closing ticket here.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hybred website’ is closed to new replies.