From 352c87a5869422a5cb83de3aa4b2af68ee6fe06e Mon Sep 17 00:00:00 2001 From: zhouzb Date: Tue, 28 Sep 2021 09:22:59 +0800 Subject: [PATCH] chore(authn): delete useless func --- .../src/simple_authn/emqx_authn_mysql.erl | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/apps/emqx_authn/src/simple_authn/emqx_authn_mysql.erl b/apps/emqx_authn/src/simple_authn/emqx_authn_mysql.erl index a838d216d..d15dff6e1 100644 --- a/apps/emqx_authn/src/simple_authn/emqx_authn_mysql.erl +++ b/apps/emqx_authn/src/simple_authn/emqx_authn_mysql.erl @@ -140,25 +140,6 @@ destroy(#{'_unique' := Unique}) -> %% Internal functions %%------------------------------------------------------------------------------ -% check_password(undefined, _Selected, _State) -> -% {error, bad_username_or_password}; -% check_password(Password, -% #{<<"password_hash">> := Hash}, -% #{password_hash_algorithm := bcrypt}) -> -% case {ok, Hash} =:= bcrypt:hashpw(Password, Hash) of -% true -> ok; -% false -> {error, bad_username_or_password} -% end; -% check_password(Password, -% #{<<"password_hash">> := Hash} = Selected, -% #{password_hash_algorithm := Algorithm, -% salt_position := SaltPosition}) -> -% Salt = maps:get(<<"salt">>, Selected, <<>>), -% case Hash =:= emqx_authn_utils:hash(Algorithm, Password, Salt, SaltPosition) of -% true -> ok; -% false -> {error, bad_username_or_password} -% end. - %% TODO: Support prepare parse_query(Query) -> case re:run(Query, ?RE_PLACEHOLDER, [global, {capture, all, binary}]) of