fix(auth-mnesia): fix env name typos

This commit is contained in:
JianBo He 2021-04-27 14:25:08 +08:00 committed by turtleDeng
parent 773b8eef2f
commit d5abfd0caa
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ load_auth_hook() ->
ok = emqx_auth_mnesia:init(#{clientid_list => ClientidList, username_list => UsernameList}),
ok = emqx_auth_mnesia:register_metrics(),
Params = #{
hash_type => application:get_env(emqx_auth_mnesia, hash_type, sha256)
hash_type => application:get_env(emqx_auth_mnesia, password_hash, sha256)
},
emqx:hook('client.authenticate', fun emqx_auth_mnesia:check/3, [Params]).

View File

@ -57,7 +57,7 @@ end_per_suite(_Config) ->
init_per_testcase(t_check_as_clientid, Config) ->
Params = #{
hash_type => application:get_env(emqx_auth_mnesia, hash_type, sha256),
hash_type => application:get_env(emqx_auth_mnesia, password_hash, sha256),
key_as => clientid
},
emqx:hook('client.authenticate', fun emqx_auth_mnesia:check/3, [Params]),
@ -65,7 +65,7 @@ init_per_testcase(t_check_as_clientid, Config) ->
init_per_testcase(_, Config) ->
Params = #{
hash_type => application:get_env(emqx_auth_mnesia, hash_type, sha256),
hash_type => application:get_env(emqx_auth_mnesia, password_hash, sha256),
key_as => username
},
emqx:hook('client.authenticate', fun emqx_auth_mnesia:check/3, [Params]),