01:39:31  * newz2000joined
01:40:18  <newz2000>Hey, I’m struggling to require authentication for URLs that match a pattern
01:40:43  <newz2000>My reading of the docs makes it look like this would work:
01:40:48  <newz2000>router.use(passport.authenticate('local', { failure: '/auth/login' }));
01:41:02  <newz2000>And all routes would require authentication. However that doesn’t work.
01:41:19  <newz2000>Any tips?
01:47:36  <newz2000>Here are two things that don’t work: https://gist.github.com/newz2000/a73a493839a7de58e350
01:48:05  <newz2000>If I comment out 7-13 in contact.js and then uncommoent 15-19 that also doesn’t work.
01:48:34  <newz2000>Every tutorial I find seems to assume app.use() for defining routes, not router.route() (my preferred) or router.use()
02:02:19  <newz2000>OK, I got through it by writting my own middleware that checked for auth rather than using passport.authenticate().
02:09:46  * anildigitalquit (Changing host)
02:09:46  * anildigitaljoined
02:32:48  * anildigitalchanged nick to zz_anildigital
02:39:53  * zz_anildigitalchanged nick to anildigital
03:44:10  * mmitchel_quit (Remote host closed the connection)
04:14:43  * mmitchel_joined
04:21:26  * mmitchel_quit (Ping timeout: 255 seconds)
04:24:40  * anildigitalchanged nick to zz_anildigital
04:39:00  * newz2000quit (Quit: newz2000)
05:12:59  * knownasilyaquit (Quit: Connection closed for inactivity)
05:13:56  * zz_anildigitalchanged nick to anildigital
05:17:41  * mmitchel_joined
05:21:52  * mmitchel_quit (Ping timeout: 240 seconds)
06:18:30  * mmitchel_joined
06:26:22  * mmitchel_quit (Ping timeout: 264 seconds)
06:33:43  * anildigitalchanged nick to zz_anildigital
06:48:22  * cyen_joined
06:48:36  <cyen_>Hello, is anyone on that can help me retrieve a userId from a session object in my routing?
08:22:54  * mmitchel_joined
08:26:13  <cyen_>could someone please help me?
08:34:03  * mmitchel_quit (Ping timeout: 240 seconds)
08:52:06  * dob_joined
09:02:19  * dob__joined
09:05:32  * dob_quit (Ping timeout: 250 seconds)
09:31:27  * mmitchel_joined
09:35:52  * mmitchel_quit (Ping timeout: 240 seconds)
09:44:46  * cyen_quit (Ping timeout: 246 seconds)
09:46:03  * knownasilyajoined
09:52:32  * dob__quit (Read error: Connection reset by peer)
09:52:58  * dob_joined
10:32:23  * mmitchel_joined
10:42:42  * mmitchel_quit (Ping timeout: 245 seconds)
11:39:52  * mmitchel_joined
11:44:03  * mmitchel_quit (Ping timeout: 240 seconds)
11:52:59  * knownasilyaquit (Quit: Connection closed for inactivity)
12:29:23  * mmitchel_joined
14:04:07  * knownasilyajoined
14:47:31  * dob_quit (Remote host closed the connection)
14:47:59  * dob_joined
15:18:35  * newz2000joined
16:16:52  * newz2000quit (Quit: newz2000)
16:48:22  * newz2000joined
17:24:32  * trex005joined
17:25:33  * trex005part
17:29:16  * dob_quit (Remote host closed the connection)
17:29:42  * dob_joined
17:36:24  * dob_quit (Remote host closed the connection)
17:36:30  * dob_joined
17:57:07  * dob_quit (Remote host closed the connection)
17:57:36  * dob_joined
18:04:07  * dob_quit (Remote host closed the connection)
18:04:13  * dob_joined
18:08:52  * newz2000quit (Quit: newz2000)
18:41:22  * dob_quit
21:56:07  * archmonkjoined
22:06:22  * archmonkquit (Ping timeout: 240 seconds)
22:51:49  * archmonkjoined
23:23:08  * mkozjakjoined
23:23:15  * mkozjakpart
23:41:54  * archmonkquit (Quit: WeeChat 0.4.1)