mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
46706646e3
refs #10060 - Modules extractions done here are meant to make upcoming migration of authentication controller to v2 more manageable and reduce code repetition - There were couple modules extracted for different areas that controller touches: passwordrest, accept (for invitation), setup - The aim was to keep changes to the minimum while making small readability improvements to new functions through async/await syntax - The biggest barrier to make more encapsulated functions was the fact that we mutate options parameter on multiple levels in the controller. e.g mutations of options.data during validation on the password reset ties it up to the implementation of doReset function |
||
---|---|---|
.. | ||
api-key | ||
members | ||
session | ||
auth-strategies.js | ||
authenticate.js | ||
authorize.js | ||
index.js | ||
oauth.js | ||
passport.js | ||
passwordreset.js | ||
setup.js | ||
utils.js |