WordPress.org

Forums

Theme My Login
[resolved] Error incorrect password after registration (8 posts)

  1. daniel22222
    Member
    Posted 12 months ago #

    When a user registers on my site it sends them a confirmation email and then they can click to activate account. Another email is sent with username and password. Problem is when the user goes to login they get an error of incorrect password. If the user uses the forgot password link and resets the password then they can login without any errors. What might cause this problem? Is the password being encrypted with the wrong method or something?
    Thanks for any help.

    https://wordpress.org/plugins/theme-my-login/

  2. daniel22222
    Member
    Posted 12 months ago #

    I have done a little more testing and when a user goes through the registration process it creates a password string in the users table. Like I mentioned above I try to login and it does not work. I then use forgot password, which send me an email with link to reset password and I reset the password to the same exact password as the original and when I go back to php table the password is different.

    password in php table after registration:
    $P$BF/gIt6dFfBBuNx6rP41Qv3i71TUie1

    password in php table after change password to same password:
    $P$BxpByDbNU3vr3sytTOcbzttp1tOodH1

    Do Theme my login and either woocommerce or wordpress use different encryption methods?

  3. daniel22222
    Member
    Posted 12 months ago #

    After more testing if I turned off all other plugins registration went smoothly. I was able to narrow down the problem plugin to the woocommerce plugin. Now I just need to figure out why it is causing issues with registration.

  4. daniel22222
    Member
    Posted 12 months ago #

    If I turn off the custom password module, the password that is automatically created and sent to the user works. After that you have to change your password to something you can remember. What in that module is causing the issue?

  5. paola.quintero
    Member
    Posted 10 months ago #

    I had the same problem and solved it. you still need help?

  6. daniel22222
    Member
    Posted 10 months ago #

    Yes I never solved the problem. I ended up just requiring them to receive a temporary password and they change the password if they want.

  7. paola.quintero
    Member
    Posted 10 months ago #

    I don't know if this is correct, but it worked for me.
    When the user register, they write their own key.

    In the file theme-my-login/includes/class-theme-my-login.php the function register_new_user($user_login, $user_email) always assigns a random password.
    Then,
    1. to search the following lines:
    $user_login = $_POST['user_login'];
    $user_email = $_POST['user_email'];
    and add the following line to get the password which the user put:
    $user_pass = $_POST['pass1'];
    $this->errors = self::register_new_user( $user_login, $user_email, $user_pass );

    2. in the last function you add the parameter $user_pass:
    public static function register_new_user( $user_login, $user_email, $user_pass ) {

    3. and finally, you comment:
    //$user_pass = apply_filters( 'tml_user_registration_pass', wp_generate_password( 12, false ) );

    This applies only if the user enters his password in the registry.

  8. daniel22222
    Member
    Posted 9 months ago #

    That seems to work, thank you very much for responding !!!

Reply

You must log in to post.

About this Plugin

  • Theme My Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic