We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6978ef4 commit 483f8f7Copy full SHA for 483f8f7
basic-auth.php
@@ -33,10 +33,12 @@ function json_basic_auth_handler( $user ) {
33
* filter during authentication.
34
*/
35
remove_filter( 'determine_current_user', 'json_basic_auth_handler', 20 );
36
+ remove_filter( 'authenticate', 'wp_authenticate_spam_check', 99 );
37
38
$user = wp_authenticate( $username, $password );
39
40
add_filter( 'determine_current_user', 'json_basic_auth_handler', 20 );
41
+ add_filter( 'authenticate', 'wp_authenticate_spam_check', 99 );
42
43
if ( is_wp_error( $user ) ) {
44
$wp_json_basic_auth_error = $user;
0 commit comments