0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/services/auth
Fabien O'Carroll 62ee693310 Lazily instantiated express-session middleware
refs https://github.com/TryGhost/Team/issues/756

When running the tests it was possible for this middleware to be
instantiated before the settings cache, resulting in an undefined
'session_secret' setting being passed. This would cause tests to fail.

Tracking this down proved difficult, so the fix was made here, by
instantiating the express-session middleware only once a request needs
to use it, we can be confident that Ghost has completely started.
2021-07-14 17:19:53 +01:00
..
api-key Moved i18n to shared 2021-05-04 13:03:38 +01:00
members Fixed members auth middleware 2021-05-24 11:28:15 +01:00
session Lazily instantiated express-session middleware 2021-07-14 17:19:53 +01:00
authenticate.js
authorize.js Moved i18n to shared 2021-05-04 13:03:38 +01:00
index.js
passwordreset.js 🔒 Added a "reset all passwords" feature (#13005) 2021-06-23 14:54:28 +02:00
setup.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00