Return true to indicate that authentication using this method was successful

This commit is contained in:
James Collins 2020-10-08 09:33:33 +08:00
parent ce31260452
commit 79dd557b77
No known key found for this signature in database
GPG Key ID: 0669E767111C190F
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ class WC_REST_Authentication {
$user_id = $this->authenticate( false );
if ( $user_id ) {
wp_set_current_user( $user_id );
return true;
}
}
return $error;