accounts-frontend/src/components/auth
2017-06-08 07:58:20 +03:00
..
acceptRules #85: updated to react router 4 and migrated code to support a new api 2017-06-08 07:58:19 +03:00
activation #85: updated to react router 4 and migrated code to support a new api 2017-06-08 07:58:19 +03:00
appInfo Образованы базовые стили для ссылок 2017-01-14 01:35:22 +03:00
authError #102: countdown for email frequency error in ResendActivation 2016-05-28 22:46:32 +03:00
chooseAccount Со страницы выбора аккаунтов удалена ссылка на создание нового аккаунта 2017-03-07 01:43:33 +03:00
finish #26: refactor auth components 2016-05-14 14:26:17 +03:00
forgotPassword Merge branch 'develop' into forgot_password_captcha 2017-04-25 21:00:01 +03:00
login #304: show Create new account link on LoginPanel for authorized users 2017-03-03 07:48:25 +02:00
password Add factory for auth components 2016-07-24 13:17:41 +03:00
permissions #189: improve appearance of long emails in forms 2016-08-27 13:46:22 +03:00
recoverPassword #85: updated to react router 4 and migrated code to support a new api 2017-06-08 07:58:19 +03:00
register #85: updated to react router 4 and migrated code to support a new api 2017-06-08 07:58:19 +03:00
resendActivation Defer Captcha initialization. Add loader for Captcha 2016-08-14 11:59:23 +03:00
actions.js #85: updated to react router 4 and migrated code to support a new api 2017-06-08 07:58:19 +03:00
actions.test.js #85: fix linting errors 2017-06-08 07:58:20 +03:00
AuthTitle.jsx #26: refactor auth components 2016-05-14 14:26:17 +03:00
BaseAuthBody.jsx #327: fix forgot password behaviour for logged in user 2017-04-19 20:51:04 +03:00
factory.jsx Add factory for auth components 2016-07-24 13:17:41 +03:00
helpLinks.scss Образованы базовые стили для ссылок 2017-01-14 01:35:22 +03:00
PanelTransition.jsx #245: back button on login panel for users with multy accs. Added history service 2017-01-29 17:36:21 +02:00
README.md #48: add dummy ChooseAccountPanel 2016-11-05 22:23:56 +02:00
reducer.js #48: add support for prompt and login_hint oauth params 2016-11-19 16:41:15 +02:00
reducer.test.js #85: move all test files alongside with tested files 2017-06-08 07:58:19 +03:00
RejectionLink.jsx #304: show Create new account link on LoginPanel for authorized users 2017-03-03 07:48:25 +02:00

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 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
  • whatever else you need

Commit id with example: f4d315c

TODO

This flow must be simplified