fix(build): apply PR#8956 changes
This commit is contained in:
parent
85835256f1
commit
fc3fdfb994
|
@ -133,8 +133,6 @@ authenticate(
|
||||||
password_hash_algorithm := Algorithm
|
password_hash_algorithm := Algorithm
|
||||||
}
|
}
|
||||||
) ->
|
) ->
|
||||||
?WITH_SUCCESSFUL_RENDER(
|
|
||||||
begin
|
|
||||||
NKey = emqx_authn_utils:render_str(KeyTemplate, Credential),
|
NKey = emqx_authn_utils:render_str(KeyTemplate, Credential),
|
||||||
Command = [CommandName, NKey | Fields],
|
Command = [CommandName, NKey | Fields],
|
||||||
case emqx_resource:query(ResourceId, {cmd, Command}) of
|
case emqx_resource:query(ResourceId, {cmd, Command}) of
|
||||||
|
@ -171,9 +169,7 @@ authenticate(
|
||||||
reason => Reason
|
reason => Reason
|
||||||
}),
|
}),
|
||||||
ignore
|
ignore
|
||||||
end
|
end.
|
||||||
end
|
|
||||||
).
|
|
||||||
|
|
||||||
%%------------------------------------------------------------------------------
|
%%------------------------------------------------------------------------------
|
||||||
%% Internal functions
|
%% Internal functions
|
||||||
|
|
|
@ -464,7 +464,7 @@ user_seeds() ->
|
||||||
<<"cmd">> => <<"HMGET mqtt_user:${username} password_hash salt is_superuser">>,
|
<<"cmd">> => <<"HMGET mqtt_user:${username} password_hash salt is_superuser">>,
|
||||||
<<"password_hash_algorithm">> => #{<<"name">> => <<"bcrypt">>}
|
<<"password_hash_algorithm">> => #{<<"name">> => <<"bcrypt">>}
|
||||||
},
|
},
|
||||||
result => {error, not_authorized}
|
result => {error, bad_username_or_password}
|
||||||
},
|
},
|
||||||
|
|
||||||
#{
|
#{
|
||||||
|
|
Loading…
Reference in New Issue