This commit is contained in:
Javier Casares 2026-06-05 19:45:19 +00:00
commit 467560d420

View file

@ -745,6 +745,11 @@ class Login_Form_Manager {
return $user;
}
// Application Passwords: skip challenge for requests authenticated via Application Passwords.
if ( $this->config->is_app_passwords_exempt() && (bool) did_action( 'application_password_did_authenticate' ) ) {
return $user;
}
// Trusted devices: skip challenge when the browser carries a valid trust cookie.
if ( $this->config->get_trust_device_days() > 0 && $this->trusted_devices->is_trusted( $user ) ) {
return $user;