application_password_failed_authentication

application_password_failed_authentication

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('application_password_failed_authentication') is found 3 times:

  • /wp-includes/user.php line 412
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
         * @since 5.6.0
         *
         * @param WP_Error $error The authentication error.
         */
        do_action( 'application_password_failed_authentication', $error );
     
        return $error;
    }
     
    /*
     * Strips out anything non-alphanumeric. This is so passwords can be used with
  • /wp-includes/user.php line 450
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    do_action( 'wp_authenticate_application_password_errors', $error, $user, $item, $password );
     
    if ( is_wp_error( $error ) && $error->has_errors() ) {
        /** This action is documented in wp-includes/user.php */
        do_action( 'application_password_failed_authentication', $error );
     
        return $error;
    }
     
    WP_Application_Passwords::record_application_password_usage( $user->ID, $item['uuid'] );
  • /wp-includes/user.php line 476
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
            __( 'The provided password is an invalid application password.' )
        );
     
        /** This action is documented in wp-includes/user.php */
        do_action( 'application_password_failed_authentication', $error );
     
        return $error;
    }
     
    /**
     * Validates the application password credentials passed via Basic Authentication.