Login trouble
-
Hi,
Am using wp_insert_user() to create the new user on registration page and on login page I used wp_signon() to validate the user with password.
After I created the new user, I can’t able to login using wp_signon, always throw an error “ERROR: The password you entered for the email address [email protected] is incorrect. Lost your password?”
If I manually reset the password from Admin dashboard under profile setting for [email protected] then I can able to login using wp_signon() function.
Though I have var_dump the result on wp_include/user.php on wp_authenticate_email_password() and wp_authenticate_username_password(). Its show the exact details as in DB for all users $password, $user->user_pass, $user->ID.
wp_check_password() is return false for newly created user by wp_insert_user() and true for the same user after manually reset password in admin dashboard.
I don’t know where the problem is. Please suggest me the solution.
Thanks
The topic ‘Login trouble’ is closed to new replies.