Skip to content

Commit 6a788de

Browse files
committed
[FIX] Special oauth_ methods: force_login param
Fix #81. We need a `&` sign to append to the existing `url`, which already contains a `?`.
1 parent 02c8e94 commit 6a788de

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ codebird-js - changelog
44
2.6.0 (not yet released)
55
+ Allow to get the supported API methods as array
66
- #79 Use POST for users/lookup and statuses/lookup, params may get too long for GET
7+
- #81 Special oauth_ methods: Fix force_login parameter
78

89
2.5.0 (2014-06-23)
910
+ #24 Add README section about xAuth

codebird.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ var Codebird = function () {
587587
}
588588
var url = _endpoint_oauth + "oauth/authenticate?oauth_token=" + _url(_oauth_token);
589589
if (params.force_login === true) {
590-
url += "?force_login=1";
590+
url += "&force_login=1";
591591
if (params.screen_name !== null) {
592592
url += "&screen_name=" + params.screen_name;
593593
}
@@ -613,7 +613,7 @@ var Codebird = function () {
613613
}
614614
var url = _endpoint_oauth + "oauth/authorize?oauth_token=" + _url(_oauth_token);
615615
if (params.force_login === true) {
616-
url += "?force_login=1";
616+
url += "&force_login=1";
617617
if (params.screen_name !== null) {
618618
url += "&screen_name=" + params.screen_name;
619619
}

0 commit comments

Comments
 (0)