MyBB Community Forums

Full Version: verify user password fail
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm getting this error when "Call to a member function run_hooks() on null in Forum/inc/functions_user.php:237" when I'm trying to verify password with php method verify_user_password($user, $password) I don't understand what is wrong?
You should be using validate_user_from_username or validate_user_from_uid. Doing it by username is the easier method because the first argument is the username they supply and the second argument is the plain text password that they entered. It returns false on failure and an array of information about the user on success.