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
33631ebd
Commit
33631ebd
authored
Oct 24, 2018
by
zCaesar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log
parent
8873d525
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
authhook/auth_on_register.js
+3
-0
authhook/config/custom-environment-variables.json
+0
-0
No files found.
authhook/auth_on_register.js
View file @
33631ebd
...
...
@@ -26,6 +26,9 @@ function authCheck(client_id, token, password, callback) {
if
(
require
(
'jwt-verify'
).
verify
(
token
))
callback
(
true
)
// auth client device by token
else
{
seneca
.
act
(
'ms:tokenregistry, cmd:getAttributes, type:device, tokencode:'
+
token
,
function
(
err
,
res
)
{
console
.
log
(
'-------------------------res-------------------------------'
)
console
.
log
(
res
)
console
.
log
(
'-------------------------res-------------------------------'
)
if
(
!
err
&&
res
)
{
var
token_profile
=
(
res
&&
res
.
result
&&
res
.
result
[
0
])?
res
.
result
[
0
]:{};
var
mqttauth
=
{
...
...
authhook/config/custom-environment-variables.json
View file @
33631ebd
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