|
41 | 41 |
|
42 | 42 | -import(vmq_topic, [words/1, match/2]). |
43 | 43 |
|
44 | | --include("apps/vmq_server/src/vmq_server.hrl"). |
| 44 | +-include_lib("vmq_server/src/vmq_server.hrl"). |
45 | 45 |
|
46 | | --define(INIT_ACL, {[], [], [], [], [], []}). |
47 | 46 | -define(TABLES, [ |
48 | 47 | vmq_enhanced_auth_acl_read_pattern, |
49 | 48 | vmq_enhanced_auth_acl_write_pattern, |
@@ -159,11 +158,11 @@ auth_on_publish_m5(User, SubscriberId, QoS, Topic, Payload, IsRetain, _Props) -> |
159 | 158 | auth_on_publish(User, SubscriberId, QoS, Topic, Payload, IsRetain). |
160 | 159 |
|
161 | 160 | auth_on_register( |
162 | | - {_IpAddr, _Port} = Peer, |
163 | | - {_MountPoint, _ClientId} = SubscriberId, |
| 161 | + {_IpAddr, _Port} = _Peer, |
| 162 | + {_MountPoint, _ClientId} = _SubscriberId, |
164 | 163 | UserName, |
165 | 164 | Password, |
166 | | - CleanSession |
| 165 | + _CleanSession |
167 | 166 | ) -> |
168 | 167 | %% do whatever you like with the params, all that matters |
169 | 168 | %% is the return value of this function |
@@ -587,7 +586,7 @@ verify(Password, SecretKey) -> |
587 | 586 | try jwerl:verify(Password, hs256, SecretKey) of |
588 | 587 | _ -> jwerl:verify(Password, hs256, SecretKey) |
589 | 588 | catch |
590 | | - error:Error -> {error, invalid_signature} |
| 589 | + error:_Error -> {error, invalid_signature} |
591 | 590 | end. |
592 | 591 |
|
593 | 592 | check_rid(Claims, UserName) -> |
|
0 commit comments