Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 4af22a7

Browse files
authored
Merge pull request #218 from Wardormeur/bugfix/oauth-token-check-should-be-access-token
Fix forum login by checking the proper variable..
2 parents 51b839c + cb73fe1 commit 4af22a7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

oauth2.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ module.exports = function (options) {
162162
// TODO : check if code exists maybe ?
163163
_getAccessTokenForAccessCode(args.code, function (err, access_token) {
164164
if (err) return done(null, {error: err, http$: {status: 500}});
165-
166165
var resp = {
167166
'access_token': access_token
168167
};
@@ -171,7 +170,7 @@ module.exports = function (options) {
171170
}
172171

173172
function cmd_profile (args, done) {
174-
if (args.token) {
173+
if (args.access_token) {
175174
_getUserForAccessToken(args.access_token, function (err, user) {
176175
if (err) return done(null, {error: err, http$: {status: 500}});
177176
var profile = {

0 commit comments

Comments
 (0)