Permalink
Browse files
limit options to post and get and default to get
- Loading branch information...
Showing
with
1 addition
and
1 deletion.
-
+1
−1
lib/passport-configurator.js
|
@@ -169,7 +169,7 @@ PassportConfigurator.prototype.configureProvider = function(name, options) { |
|
|
var authPath = options.authPath || ((link ? '/link/' : '/auth/') + name);
|
|
|
var callbackPath = options.callbackPath || ((link ? '/link/' : '/auth/') +
|
|
|
name + '/callback');
|
|
|
- var callbackHTTPMethod = options.callbackHTTPMethod || 'get';
|
|
|
+ var callbackHTTPMethod = options.callbackHTTPMethod !== 'post' ? 'get' : 'post';
|
|
|
|
|
|
// remember returnTo position, set by ensureLoggedIn
|
|
|
var successRedirect = function(req){
|
|
|
0 comments on commit
0e0125b