소스 검색

chore: remove the `unauthorized` type for `from` field

JianBo He 2 년 전
부모
커밋
bdf24d0ec8
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      apps/emqx_dashboard/src/emqx_dashboard_audit.erl

+ 1 - 2
apps/emqx_dashboard/src/emqx_dashboard_audit.erl

@@ -37,8 +37,7 @@ log(Meta0) ->
     ok.
 
 from(jwt_token) -> "dashboard";
-from(api_key) -> "rest_api";
-from(_) -> "unauthorized".
+from(_) -> "rest_api".
 
 level(get, _Code, _) -> debug;
 level(_, Code, _) when Code >= 200 andalso Code < 300 -> info;