Просмотр исходного кода

fix: add boostrap_file/type to post authn_api

zhongwencool 1 год назад
Родитель
Сommit
8e904099c7
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      apps/emqx_auth_mnesia/src/emqx_authn_mnesia_schema.erl

+ 3 - 2
apps/emqx_auth_mnesia/src/emqx_authn_mnesia_schema.erl

@@ -46,7 +46,7 @@ select_union_member(_Kind, _Value) ->
 fields(builtin_db) ->
     [
         {password_hash_algorithm, fun emqx_authn_password_hashing:type_rw/1}
-    ] ++ common_fields() ++ bootstrap_fields();
+    ] ++ common_fields().
 fields(builtin_db_api) ->
     [
         {password_hash_algorithm, fun emqx_authn_password_hashing:type_rw_api/1}
@@ -68,7 +68,8 @@ common_fields() ->
         {mechanism, emqx_authn_schema:mechanism(?AUTHN_MECHANISM_SIMPLE)},
         {backend, emqx_authn_schema:backend(?AUTHN_BACKEND)},
         {user_id_type, fun user_id_type/1}
-    ] ++ emqx_authn_schema:common_fields().
+    ] ++ bootstrap_fields() ++
+        emqx_authn_schema:common_fields().
 
 bootstrap_fields() ->
     [