• Resolved anahitipoint

    (@anahitipoint)


    Hi,

    I have used your plugin only for change password section, for the login screen i have custom ajax based form and i just realized that i have a conflict between my login form and your plugin.

    it is giving an error when logging in.

    It says that Account is not active and when am disabling your plugin all works.

    Please help to figure out.

    Thanks in advance.

    https://www.ads-software.com/plugins/manage-user-ajax-simple/

Viewing 1 replies (of 1 total)
  • Plugin Author baotuyen777

    (@baotuyen777)

    yes. after submit login form, plugin will check status of account.
    you can remove this code in file login.php, line 19

    add_filter(‘wp_authenticate_user’, function($user) {
    if (!is_super_admin($user->ID)) {
    if (get_user_meta($user->ID, ‘user_flag’, true) == 1) {
    return $user;
    }
    qsoft_redirect(home_url(), ‘Account Not Active…’);
    }
    return $user;
    }, 10, 2);

Viewing 1 replies (of 1 total)
  • The topic ‘Conflict when logging in’ is closed to new replies.