Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login: move "expiresIn" option from request.body to request root attribute #238

Merged
merged 2 commits into from
Jul 7, 2017

Conversation

ballinette
Copy link

@codecov-io
Copy link

codecov-io commented Jul 4, 2017

Codecov Report

Merging #238 into 5.x will decrease coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              5.x     #238      +/-   ##
==========================================
- Coverage   98.46%   98.38%   -0.08%     
==========================================
  Files          17       17              
  Lines        2143     2172      +29     
  Branches      609      616       +7     
==========================================
+ Hits         2110     2137      +27     
- Misses         33       35       +2
Impacted Files Coverage Δ
src/Kuzzle.js 98.94% <100%> (-0.01%) ⬇️
src/SearchResult.js 97.53% <0%> (-2.47%) ⬇️

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 4ecab74...94c432b. Read the comment docs.

src/Kuzzle.js Outdated
@@ -523,11 +526,11 @@ Kuzzle.prototype.login = function (strategy) {

if (typeof credentials === 'object') {
Object.keys(credentials).forEach(function (key) {
Copy link
Contributor

Choose a reason for hiding this comment

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

The body could just be set to credentials instead of copying it property by property

Copy link
Author

Choose a reason for hiding this comment

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

done

@stafyniaksacha stafyniaksacha merged commit bc681a0 into 5.x Jul 7, 2017
@stafyniaksacha stafyniaksacha deleted the 39-login-expiresIn branch July 7, 2017 10:08
@stafyniaksacha stafyniaksacha mentioned this pull request Jul 19, 2017
@scottinet scottinet mentioned this pull request Aug 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants