mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-06 16:21:23 +05:30
.. | ||
acceptRules | ||
activation | ||
appInfo | ||
authError | ||
chooseAccount | ||
finish | ||
forgotPassword | ||
login | ||
password | ||
permissions | ||
recoverPassword | ||
register | ||
resendActivation | ||
actions.js | ||
AuthTitle.jsx | ||
BaseAuthBody.jsx | ||
factory.jsx | ||
helpLinks.scss | ||
OAuthInit.jsx | ||
PanelTransition.jsx | ||
README.md | ||
reducer.js | ||
RejectionLink.jsx |
How to add new auth panel
To add new panel you need to:
- create panel component at
components/auth/[panelId]
- add new context in
components/auth/PanelTransition
- connect component to
routes
- add new state to
services/authFlow
and coresponding test totests/services/authFlow
- connect state to
authFlow
. Updateservices/authFlow/AuthFlow.test
andservices/authFlow/AuthFlow.functional.test
(the last one for some complex flow) - add new actions to
components/auth/actions
and api endpoints toservices/api
- whatever else you need
Commit id with example: f4d315c
TODO
This flow must be simplified