Skip to content

Commit

Permalink
Use authCode from config again (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
robbertkl authored and lieuwex committed Dec 8, 2019
1 parent ab2df0d commit 452c92a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@magisterjs/authcode": "*",
"dedent": "^0.7.0",
"lodash": "^4.17.11",
"magister-openid": "^0.1.2",
"magister-openid": "^0.1.5",
"moment": "^2.24.0",
"node-fetch": "^2.6.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/magister.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ class Magister {
throw new AuthError(error)
})
} else {
await this.authManager.login(options.username, options.password)
await this.authManager.login(options.username, options.password, options.authCode)
.catch(error => {
throw new AuthError(error)
})
Expand Down

0 comments on commit 452c92a

Please sign in to comment.