fix(auth-mnesia): fix env name typos
This commit is contained in:
parent
773b8eef2f
commit
d5abfd0caa
|
@ -58,7 +58,7 @@ load_auth_hook() ->
|
||||||
ok = emqx_auth_mnesia:init(#{clientid_list => ClientidList, username_list => UsernameList}),
|
ok = emqx_auth_mnesia:init(#{clientid_list => ClientidList, username_list => UsernameList}),
|
||||||
ok = emqx_auth_mnesia:register_metrics(),
|
ok = emqx_auth_mnesia:register_metrics(),
|
||||||
Params = #{
|
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]).
|
emqx:hook('client.authenticate', fun emqx_auth_mnesia:check/3, [Params]).
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ end_per_suite(_Config) ->
|
||||||
|
|
||||||
init_per_testcase(t_check_as_clientid, Config) ->
|
init_per_testcase(t_check_as_clientid, Config) ->
|
||||||
Params = #{
|
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
|
key_as => clientid
|
||||||
},
|
},
|
||||||
emqx:hook('client.authenticate', fun emqx_auth_mnesia:check/3, [Params]),
|
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) ->
|
init_per_testcase(_, Config) ->
|
||||||
Params = #{
|
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
|
key_as => username
|
||||||
},
|
},
|
||||||
emqx:hook('client.authenticate', fun emqx_auth_mnesia:check/3, [Params]),
|
emqx:hook('client.authenticate', fun emqx_auth_mnesia:check/3, [Params]),
|
||||||
|
|
Loading…
Reference in New Issue