]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit - server/tests/plugins/plugin-router.ts
server/mw/oauth: res.loc.auth to true upon auth
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>
Fri, 4 Dec 2020 21:13:11 +0000 (22:13 +0100)
committerChocobozzz <chocobozzz@cpy.re>
Tue, 8 Dec 2020 09:40:08 +0000 (10:40 +0100)
commit2805cb7cb68cae0f25bd43f166e4a6b8501d41eb
treee80b70812787359aef59adc37fd546f992f2093e
parentf17faefb30e4872688a1c0dafcc6c793242750f4
server/mw/oauth: res.loc.auth to true upon auth

Setting res.locals.authenticated explicity to
true makes it's more clear whether the req is
authenticated when using optionalAuthenticate
middlware.
server/middlewares/oauth.ts
server/tests/plugins/plugin-router.ts