Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vernemq
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stack
vernemq
Commits
9547c678
Commit
9547c678
authored
Sep 17, 2018
by
zCaesar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete log
parent
6191b1c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
3 deletions
+0
-3
authhook/auth_on_publish.js
+0
-1
authhook/auth_on_subscribe.js
+0
-1
authhook/utils/getTopic.js
+0
-1
No files found.
authhook/auth_on_publish.js
View file @
9547c678
...
@@ -31,7 +31,6 @@ module.exports = function (options = {}) {
...
@@ -31,7 +31,6 @@ module.exports = function (options = {}) {
getGroupID
(
req
.
body
.
username
,
req
.
body
.
client_id
,
(
_id
)
=>
{
// get groupID
getGroupID
(
req
.
body
.
username
,
req
.
body
.
client_id
,
(
_id
)
=>
{
// get groupID
// console.log(_id)
// console.log(_id)
var
_ftopic
=
require
(
'./utils/getTopic'
).
getTopic
(
topic
,
_id
)
// get topic where concat with groupID
var
_ftopic
=
require
(
'./utils/getTopic'
).
getTopic
(
topic
,
_id
)
// get topic where concat with groupID
console
.
log
(
_ftopic
)
var
response
=
{
var
response
=
{
'result'
:
'ok'
,
'result'
:
'ok'
,
'modifiers'
:
{
'modifiers'
:
{
...
...
authhook/auth_on_subscribe.js
View file @
9547c678
...
@@ -36,7 +36,6 @@ module.exports = function (options = {}) {
...
@@ -36,7 +36,6 @@ module.exports = function (options = {}) {
getGroupID
(
req
.
body
.
username
,
req
.
body
.
client_id
,
(
_id
)
=>
{
// get groupID
getGroupID
(
req
.
body
.
username
,
req
.
body
.
client_id
,
(
_id
)
=>
{
// get groupID
// console.log(_id)
// console.log(_id)
var
_ftopic
=
require
(
'./utils/getTopic'
).
getTopic
(
topic
,
_id
)
// get topic where concat with groupID
var
_ftopic
=
require
(
'./utils/getTopic'
).
getTopic
(
topic
,
_id
)
// get topic where concat with groupID
console
.
log
(
_ftopic
)
var
_topic
=
[{
// setTopic for response
var
_topic
=
[{
// setTopic for response
'topic'
:
_ftopic
,
'topic'
:
_ftopic
,
'qos'
:
0
'qos'
:
0
...
...
authhook/utils/getTopic.js
View file @
9547c678
function
getTopic
(
topic
,
id
)
{
function
getTopic
(
topic
,
id
)
{
console
.
log
(
topic
)
if
(
!
checkWildCard
(
topic
))
{
if
(
!
checkWildCard
(
topic
))
{
var
_topic
=
classifiedTopic
(
topic
)
+
'/!'
+
id
+
topic
.
split
(
classifiedTopic
(
topic
))[
1
]
var
_topic
=
classifiedTopic
(
topic
)
+
'/!'
+
id
+
topic
.
split
(
classifiedTopic
(
topic
))[
1
]
return
_topic
return
_topic
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment