• Resolved Charlie

    (@charliemariephoto)


    Hi there,

    I’m unsure if this is your plugin or something on my side.

    I’ve spoken quite a lot with my host (Flywheel) and they’ve suggested I reach out to you.

    I’m noticing an intermittent problem whereby some of my members (and myself) keep getting told to enter their password again, even though it is correct. It means a lot of them are having to reset their password, just to get in, even though they reset it to the same password.

    It doesn’t happen *all* the time, but enough for them to reach out and tell me about it. And it’s happened to me a few times as well.

    I believe the woocommerce my-account log in page that my site has works fine, but the front end of the site where your form is, seems to do this a fair bit.

    Any ideas?

    Again, as it’s intermittent, it’s hard to replicate the issue on demand so I’m not sure where to go or what to do.

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Alessandro Tesoro

    (@alessandrotesoro)

    Hi @charliemariephoto

    WPUM doesn’t have any automated system that “erases” users passwords.

    When you say that your members “keep getting told to enter their password again” Are they seeing/getting a specific message? If they see a specific message, the best way to find who’s causing this issue on your site is search for that specific message or parts of the message that your members might be seeing in all your themes/plugins files.

    Thread Starter Charlie

    (@charliemariephoto)

    Hi there

    It’s not erasing their passwords, it’s just not accepting them. It’s your form that displays the message, and it just asks to re-enter their password.

    I know there is an issue, as it’s also happened to me, and I hadn’t changed my password, and it was definitely correct. I copied it from my password vault which is how I normally log in.

    It’s not happening for me now, its logging me in fine, so it’s hard to replicate the error, I don’t know the specific message, but it was just the standard, password incorrect message.

    Any ideas?

    Thanks

    Plugin Contributor Alessandro Tesoro

    (@alessandrotesoro)

    Hi @charliemariephoto

    WPUM uses default WordPress functions to log users in and to verify credentials. Any theme/plugin can easily hook into the WP authentication system and add their own functionalities too. Therefore any theme/plugin could be returning whatever the error that you see, An error message displayed within the WPUM login form doesn’t necessarily mean that it’s an error triggered by WPUM.

    If you have any coding knowledege you can see this here:

    – At first WPUM checks that the credentials are correct https://github.com/WPUserManager/wp-user-manager/blob/master/includes/wpum-forms/class-wpum-form-login.php#L160 if there’s any error, it just displays whatever error WordPress has given to WPUM.

    Here I’m just using a WP’s default function https://codex.www.ads-software.com/Function_Reference/wp_authenticate

    – Once credentials are verified, I’m just logging the user in, again by using a native WP’s function https://github.com/WPUserManager/wp-user-manager/blob/master/includes/wpum-forms/class-wpum-form-login.php#L210

    Here I’m using https://codex.www.ads-software.com/Function_Reference/wp_signon

    Just like the first authentication step, if the wp_signon returns any error, I’m just displaying whatever error WP is sending to WPUM.

    Credentials set into the login form aren’t verified by WPUM. They’re verified using native functionalities that belong to WP in which any plugin/theme can hook, do “their own thing” and even return their own custom errors.

    The only time that WPUM interacts with the authentication system of WP is to determine that the users are logging-in with the correct credentials for the login method that you’ve chosen for your site. The login method is set in Users -> Settings -> General -> Login Settings -> Allow users to login with so you might want to make sure that you’re loggin in with the right credentials. If you’re restricting login by “username only” you’ll need to login with the username otherwise it will tell you that your details are wrong, the same applies if you’ve set “email only”, you’ll have to enter your email address.

    Unfortunately there’s not much more I can do since this isn’t an issue with WPUM itself.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Constantly asking for password even though it’s correct’ is closed to new replies.