Prechádzať zdrojové kódy

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

JianBo He 2 rokov pred
rodič
commit
bdf24d0ec8

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

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