check_password_reset_key


check_password_reset_key ( $key, $login )

Parameters:
  • (string) $key Hash to validate sending user's password.
  • (string) $login The user login.
Returns:
  • (WP_User|WP_Error) WP_User object on success, WP_Error object for invalid or expired keys.
Defined at:

Description

Retrieves a user row based on password reset key and login

A key is considered 'expired' if it exactly matches the value of the user_activation_key field, rather than being matched after going through the hashing process. This field is now hashed; old values are no longer accepted but have a different WP_Error code so good user feedback can be provided.

Related Functions

get_password_reset_key, wp_check_password, check_admin_referer, check_upload_size, get_the_password_form

Top Google Results

User discussions

wpseek mobile