Skip to content

Commit

Permalink
Merge pull request #17 from acreeger/stripping-trailing-slashes-from-…
Browse files Browse the repository at this point in the history
…redirect-uri

Getting rid of trailing slashes from the github OAuth2 redirect URI
  • Loading branch information
Niall O'Higgins committed Jan 25, 2013
2 parents 23e5e63 + 6a67baf commit 78c1f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function init(schema, userf, InviteCode, mongoose_auth) {
, appSecret: config.github.appSecret
, redirectPath: '/add_repo'
, scope: "user,repo"
, myHostname: config.github.myHostname
, myHostname: config.github.myHostname.replace(/\/+$/,"")
// Start crazy everyauth oauth2 module security overrides
, handleAuthCallbackError: function(req, res) {
// XXX Pretty
Expand Down

0 comments on commit 78c1f8d

Please sign in to comment.