Skip to content

Conversation

@OSPFNeighbour
Copy link
Contributor

if ALLOW_ANON exists the DEFAULT USER will be used, else reject the
connection

if ALLOW_ANON exists the DEFAULT USER will be used, else reject the
connection
@codecov
Copy link

codecov bot commented Jun 21, 2018

Codecov Report

Merging #525 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #525      +/-   ##
==========================================
- Coverage    27.8%   27.78%   -0.02%     
==========================================
  Files         180      180              
  Lines        2924     2926       +2     
  Branches      425      426       +1     
==========================================
  Hits          813      813              
- Misses       1789     1790       +1     
- Partials      322      323       +1
Flag Coverage Δ
#integration 0% <0%> (ø) ⬆️
#unittests 28.32% <0%> (-0.02%) ⬇️
Impacted Files Coverage Δ
server/src/main.js 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6cbeca5...fc082bd. Read the comment docs.

Copy link
Contributor

@sjmcculloch sjmcculloch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

},
})).catch(() => Promise.reject(Error('Unauthorised'))),
));
})).catch(() => false),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please explain what this changes functionally

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping

postJWTAuth(!err ? { id: decoded.id, device: decoded.device } : { id: null, device: null })
.then(({ user, device }) => ({ user, device }))
.catch(() => Promise.error('Unauthorised')),
.catch(() => Promise.reject(Error('Unauthorised')),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sneaky fix

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed that one did you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants