Permalink
Browse files

Optional redirect

  • Loading branch information...
1 parent 9c676b9 commit 720ca52bca41eeffe64e112aefb6e7a927619d39 Anatoliy Chakkaev committed May 17, 2011
Showing with 10 additions and 4 deletions.
  1. +4 −1 index.js
  2. +6 −3 package.json
View
@@ -87,7 +87,10 @@ function initApp (settings) {
req.session.twitter.oauthAccessToken = oauthAccessToken;
req.session.twitter.oauthAccessTokenSecret = oauthAccessTokenSecret;
app.emit(TWITTER_CONNECT_EVENT, req.session.twitter, req, res);
- redirectBack(req, res);
+ if (settings.autoRedirect) {
+ console.log('autoredirect');
+ redirectBack(req, res);
+ }
}
}
}
View
@@ -1,11 +1,14 @@
{
"name": "railway-twitter",
"description": "Simple twitter auth app for railway",
- "version": "0.0.1",
+ "version": "0.0.2",
"homepage": "http://railwayjs.com/extensions/twitter",
"repository": {
"type": "git",
- "url": "git://github.com/anatoliychakkaev/railwayjs.com.git"
+ "url": "git://github.com/1602/railway-twitter.git"
+ },
+ "dependencies": {
+ "oauth": ">=0.9.0"
},
"author": "Anatoliy Chakkaev <rpm1602@gmail.com> (http://node-js.ru)",
"directories": {
@@ -14,4 +17,4 @@
"engines": {
"node": "*"
}
-}
+}

0 comments on commit 720ca52

Please sign in to comment.