Return true to indicate that authentication using this method was successful
This commit is contained in:
parent
ce31260452
commit
79dd557b77
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue