From ac631110cb1d1f455a4e592e9c1dc8a1701acd7b Mon Sep 17 00:00:00 2001 From: zhouzb Date: Tue, 11 Jan 2022 10:05:11 +0800 Subject: [PATCH] chore: remove useless field --- apps/emqx_authn/src/simple_authn/emqx_authn_pgsql.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/emqx_authn/src/simple_authn/emqx_authn_pgsql.erl b/apps/emqx_authn/src/simple_authn/emqx_authn_pgsql.erl index 222dcc4db..6589fc8eb 100644 --- a/apps/emqx_authn/src/simple_authn/emqx_authn_pgsql.erl +++ b/apps/emqx_authn/src/simple_authn/emqx_authn_pgsql.erl @@ -76,8 +76,7 @@ create(#{query := Query0, ok = emqx_authn_password_hashing:init(Algorithm), {Query, PlaceHolders} = parse_query(Query0), ResourceId = emqx_authn_utils:make_resource_id(?MODULE), - State = #{query => Query, - placeholders => PlaceHolders, + State = #{placeholders => PlaceHolders, password_hash_algorithm => Algorithm, resource_id => ResourceId}, case emqx_resource:create_local(ResourceId, emqx_connector_pgsql, Config#{named_queries => #{ResourceId => Query}}) of