fix(dashboard): batter auth failed response message
This commit is contained in:
parent
34dfc327f3
commit
db9d269034
|
@ -151,9 +151,9 @@ authorize(Req) ->
|
||||||
ok ->
|
ok ->
|
||||||
ok;
|
ok;
|
||||||
{error, token_timeout} ->
|
{error, token_timeout} ->
|
||||||
{401, <<"TOKEN_TIME_OUT">>, <<"POST '/login', get new token">>};
|
{401, <<"TOKEN_TIME_OUT">>, <<"Token expired, get new token by POST /login">>};
|
||||||
{error, not_found} ->
|
{error, not_found} ->
|
||||||
{401, <<"BAD_TOKEN">>, <<"POST '/login', get new token">>}
|
{401, <<"BAD_TOKEN">>, <<"Get a token by POST /login">>}
|
||||||
end;
|
end;
|
||||||
_ ->
|
_ ->
|
||||||
return_unauthorized(<<"AUTHORIZATION_HEADER_ERROR">>,
|
return_unauthorized(<<"AUTHORIZATION_HEADER_ERROR">>,
|
||||||
|
|
Loading…
Reference in New Issue