public/wordpress/wp-content/plugins/wp-courseware/includes/controllers/students.php
/**
	 * Check lost password reset key.
	 *
	 * Retrieves a user row based on password reset key and login.
	 *
	 * @uses $wpdb WordPress Database object
	 *
	 * @param string $key Hash to validate sending user's password.
	 * @param string $login The user login.
	 *
	 * @return WP_User|bool User's database row on success, false for invalid keys
	 */
Check lost password reset key.
Retrieves a user row based on password reset key and login.

@uses $wpdb WordPress Database object

@param string $key Hash to validate sending user's password.
@param string $login The user login.

@return WP_User|bool User's database row on success, false for invalid keys
Check lost password reset key . Retrieves a user row based on password reset key and login . @uses $wpdb WordPress Database object @param string $key Hash to validate sending user ' s password . @param string $login The user login . @return WP_User|bool User ' s database row on success false for invalid keys
public function check_lost_password_reset_key( $key, $login ) {
		$user = check_password_reset_key( $key, $login );
		if ( is_wp_error( $user ) ) {
			wpcw_add_notice( __( 'This key is invalid or has already been used. Please reset your password again if needed.', 'wp-courseware' ), 'error' );
			return false;
		}
		return $user;
	}
public function check_lost_password_reset_key ( $ key , $ login ) { $ user = check_password_reset_key ( $ key , $ login ) ; if ( is_wp_error ( $ user ) ) { wpcw_add_notice ( __ ( 'This key is invalid or has already been used. Please reset your password again if needed.' , 'wp-courseware' ) , 'error' ) ; return false ; } return $ user ; }
Check lost password reset key.
Check lost password reset key .