Support » Plugin: Login With Ajax - Fast Logins, 2FA, Redirects » Login ajax redirecting to "1" as url

Viewing 7 replies - 1 through 7 (of 7 total)
  • Kamil

    (@rossini7777)

    Same here. After login wp redirects me to url with “1” filled in…

    WP: 4.0
    Login W/ Ajax: 3.1.4

    Same problem here – solution below taken from another thread – it worked for me! Revert back to plugin version 3.1.3.

    revert back to the previous version http://downloads.wordpress.org/plugin/login-with-ajax.3.1.3.zip

    Thread Starter pranav 034

    (@pranav-034)

    Hi Lee550,

    Previous version was working perfectly fine but my host want all plugins to be updated.

    Finally,I am reverting back until I find a solution

    Thanks
    Pranav

    Here is another solution.
    Open the file login-with-ajax.php and around line 162, change the “if statements” order.

    Current order:

    if( !empty($_REQUEST['redirect_to']) ) $redirect= wp_sanitize_redirect($_REQUEST['redirect_to']);
    if( $redirect != '' ){ $return['redirect'] = $redirect;	}

    Change it to:

    if( $redirect != '' ){ $return['redirect'] = $redirect; }
    if( !empty($_REQUEST['redirect_to']) ) $redirect= wp_sanitize_redirect($_REQUEST['redirect_to']);

    `

    Thread Starter pranav 034

    (@pranav-034)

    Hi Harrison,

    This solution worked really quick.

    Thanks so much

    Pranav

    Harrison,

    It worked perfectly; thank you for the quick fix.

    Dag

    i had to edit and disable the redirect to of the file login-with-ajax.php

    //Do a redirect if necessary
    //$redirect = self::getLoginRedirect(self::$current_user);
    //if( !empty($_REQUEST[‘redirect_to’]) ) $redirect= wp_sanitize_redirect($_REQUEST[‘redirect_to’]);
    //if( $redirect != ” ){
    //$return[‘redirect’] = $redirect;
    //}

    nice plugin but there is some error with this plugin , it s a pitty it s really nice, don t know if this si a security related issue… the developer should update it

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Login ajax redirecting to "1" as url’ is closed to new replies.