We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b264cda commit ae2376cCopy full SHA for ae2376c
server.js
@@ -1,6 +1,11 @@
1
// Node 0.10.x adds additional cert checking, which could cause problems here.
2
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
3
4
+// Catch any and all exceptions.
5
+process.on( 'uncaughtException' ,function(err) {
6
+ console.log( "Uncaught error", err );
7
+});
8
+
9
var express = require('express'),
10
passport = require( 'passport' ),
11
FacebookStrategy = require( 'passport-facebook' ).Strategy,
@@ -204,7 +209,7 @@ app.get( '/auth/twitter/callback',
204
209
}
205
210
);
206
211
207
-app.get( '/auth/imap/callback',
212
+app.post( '/auth/imap/callback',
208
213
passport.authenticate( 'imap', { failureRedirect: '#auth-failure' } ),
214
function( req, res ) {
215
if( req.session[ 'auth-return' ] )
0 commit comments