Browse Source

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

JianBo He 2 năm trước cách đây
mục cha
commit
bdf24d0ec8
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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;