Skip to content

Commit

Permalink
chore: update import lib path, ignore unused variables (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
VivekPipaliya23 committed Jun 14, 2024
1 parent 3871ae1 commit 9c71ee4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions apps/vmq_enhanced_auth/src/vmq_enhanced_auth.erl
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@

-import(vmq_topic, [words/1, match/2]).

-include("apps/vmq_server/src/vmq_server.hrl").
-include_lib("vmq_server/src/vmq_server.hrl").

-define(INIT_ACL, {[], [], [], [], [], []}).
-define(TABLES, [
vmq_enhanced_auth_acl_read_pattern,
vmq_enhanced_auth_acl_write_pattern,
Expand Down Expand Up @@ -159,11 +158,11 @@ auth_on_publish_m5(User, SubscriberId, QoS, Topic, Payload, IsRetain, _Props) ->
auth_on_publish(User, SubscriberId, QoS, Topic, Payload, IsRetain).

auth_on_register(
{_IpAddr, _Port} = Peer,
{_MountPoint, _ClientId} = SubscriberId,
{_IpAddr, _Port} = _Peer,
{_MountPoint, _ClientId} = _SubscriberId,
UserName,
Password,
CleanSession
_CleanSession
) ->
%% do whatever you like with the params, all that matters
%% is the return value of this function
Expand Down Expand Up @@ -587,7 +586,7 @@ verify(Password, SecretKey) ->
try jwerl:verify(Password, hs256, SecretKey) of
_ -> jwerl:verify(Password, hs256, SecretKey)
catch
error:Error -> {error, invalid_signature}
error:_Error -> {error, invalid_signature}
end.

check_rid(Claims, UserName) ->
Expand Down

0 comments on commit 9c71ee4

Please sign in to comment.