You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LudwikJaniuk c7f3b76b4e DRY req props that depend on auth (fix #6727) (#6731)
* DRY req props that depend on auth (fix #6727)

authentication leads to req.loggedIn and req.uid being set. However, a
later authentication event might outdate them. Here, I create one
function for setting those properties, and make sure it also is called
on the `action:middleware.authenticate` hook, which would be such an
authentication event. If there are other places, those should be added
as well.

* fix lint errors

* fix lint error

* change exports
7 years ago
..
admin.js closes #6476, closes #6546 7 years ago
header.js Revert "closes #6664" 7 years ago
headers.js closes #6556 7 years ago
index.js Precompile all templates 7 years ago
maintenance.js cleanup and tests 8 years ago
ratelimit.js ESlint lines-around-directive 8 years ago
render.js #6554 7 years ago
user.js DRY req props that depend on auth (fix #6727) (#6731) 7 years ago