From 8e904099c704f5eb9425f620a75a28563cd16c95 Mon Sep 17 00:00:00 2001 From: zhongwencool Date: Tue, 2 Jul 2024 18:57:37 +0800 Subject: [PATCH] fix: add boostrap_file/type to post authn_api --- apps/emqx_auth_mnesia/src/emqx_authn_mnesia_schema.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/emqx_auth_mnesia/src/emqx_authn_mnesia_schema.erl b/apps/emqx_auth_mnesia/src/emqx_authn_mnesia_schema.erl index 6544874dc..85268a5f2 100644 --- a/apps/emqx_auth_mnesia/src/emqx_authn_mnesia_schema.erl +++ b/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() -> [