Support » Plugin: Theme My Login » Error incorrect password after registration

  • Resolved daniel22222


    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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:

    password in php table after change password to same password:

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

    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.

    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?

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

    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.

    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.
    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.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error incorrect password after registration’ is closed to new replies.