Enable login by role both on frontend and backend
This commit is contained in:
@@ -58,6 +58,10 @@ class Wiaas_User {
|
||||
* @return mixed
|
||||
*/
|
||||
public static function transform_jwt_token_response($data, $user) {
|
||||
if (is_wp_error($data)) {
|
||||
return $data;
|
||||
}
|
||||
|
||||
return new WP_REST_Response(array(
|
||||
'token' => $data['token'],
|
||||
'userInfo' => array(
|
||||
|
||||
Reference in New Issue
Block a user