Login error with Laravel Vue with JWT

0

I have an error when logging in my login, I created the account in my registry but when I put the data, I sent an error on my token, that happens when I create my accounts because the first account I made Log me in.

When I log in, I get this error: Response body: message: "We can t find an account with this credentials." status: "error" __proto__: Object bodyText: "{"status":"error","message":"We can t find an account with this credentials."} " headers: Headers {map: {...}} ok: false status: 401 statusText: "Unauthorized" url: " link " data: (...) proto : Object

Since I send this message to the moment of error "We can not find an account with this credentials."

In Laravel I have this code:

if (! $ token = JWTAuth :: attempt ($ credentials)) {                 return response () - & jt; json ([                     'status' = > 'error',                     'message' = > 'We can not find an account with this credentials.'                 ], 401);             }

Any solution?

    
asked by Jorge Julian 05.12.2018 в 19:51
source

0 answers