accounts-frontend/src/components/auth
2016-08-02 21:59:29 +03:00
..
acceptRules #104: add AcceptRules auth panel 2016-08-02 21:59:29 +03:00
activation Add factory for auth components 2016-07-24 13:17:41 +03:00
appInfo #118: move LangMenu inside FooterMenu 2016-05-27 23:38:17 +03:00
authError #102: countdown for email frequency error in ResendActivation 2016-05-28 22:46:32 +03:00
changePassword Add factory for auth components 2016-07-24 13:17:41 +03:00
finish #26: refactor auth components 2016-05-14 14:26:17 +03:00
forgotPassword Add factory for auth components 2016-07-24 13:17:41 +03:00
login Add factory for auth components 2016-07-24 13:17:41 +03:00
password Add factory for auth components 2016-07-24 13:17:41 +03:00
permissions Add factory for auth components 2016-07-24 13:17:41 +03:00
recoverPassword Add factory for auth components 2016-07-24 13:17:41 +03:00
register Add factory for auth components 2016-07-24 13:17:41 +03:00
resendActivation #14: add captcha support for resend-activation 2016-07-31 16:53:16 +03:00
actions.js #104: add AcceptRules auth panel 2016-08-02 21:59:29 +03:00
AuthTitle.jsx #26: refactor auth components 2016-05-14 14:26:17 +03:00
BaseAuthBody.jsx #26: email resend count down for forgot-password 2016-05-22 17:04:13 +03:00
factory.jsx Add factory for auth components 2016-07-24 13:17:41 +03:00
helpLinks.scss Маленький рефакторинг PanelTransition 2016-02-06 12:02:23 +02:00
OAuthInit.jsx Auth flow. The next 2016-03-01 22:36:49 +02:00
PanelTransition.jsx #104: add AcceptRules auth panel 2016-08-02 21:59:29 +03:00
README.md #104: add AcceptRules auth panel 2016-08-02 21:59:29 +03:00
reducer.js Убрал повторный запрос на complete, когда acceptRequired 2016-04-14 22:54:44 +03:00
RejectionLink.jsx #156: add already have code for register panel 2016-07-24 11:32:54 +03:00

How to add new auth panel

To add new panel you need to:

  • add new state to services/authFlow and coresponding test to tests/services/authFlow
  • connect state to authFlow. Update services/authFlow/AuthFlow.test and services/authFlow/AuthFlow.functional.test (the last one for some complex flow)
  • add new actions to components/auth/actions and api endpoints to services/api
  • create panel component at components/auth/[panelId]
  • add new context in components/auth/PanelTransition
  • connect component to routes
  • whatever else you need

TODO

This flow must be simplified