File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -62,26 +62,21 @@ differently, options are available to change the defaults.
6262
6363 passport.use(new LocalStrategy({
6464 usernameField: 'email',
65- passwordField: 'passwd',
66- session: false
65+ passwordField: 'passwd'
6766 },
6867 function(username, password, done) {
6968 // ...
7069 }
7170 ));
7271
73- When session support is not necessary, it can be safely disabled by
74- setting the ` session ` option to false.
75-
7672The verify callback can be supplied with the ` request ` object by setting
7773the ` passReqToCallback ` option to true, and changing callback arguments
7874accordingly.
7975
8076 passport.use(new LocalStrategy({
8177 usernameField: 'email',
8278 passwordField: 'passwd',
83- passReqToCallback: true,
84- session: false
79+ passReqToCallback: true
8580 },
8681 function(req, username, password, done) {
8782 // request object is now first argument
You can’t perform that action at this time.
0 commit comments