summaryrefslogtreecommitdiffstats
path: root/webapp/root.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2016-03-17 15:46:16 -0400
committerJoramWilander <jwawilander@gmail.com>2016-03-23 15:59:58 -0400
commit463fd8c20b6e20d1cc669810c339770b9b1ede41 (patch)
tree3bf857301e0a24a1a7ccd7c5d15834829e3d22e7 /webapp/root.jsx
parent7af2e6f87a754312809aa044edd062930616401a (diff)
downloadchat-463fd8c20b6e20d1cc669810c339770b9b1ede41.tar.gz
chat-463fd8c20b6e20d1cc669810c339770b9b1ede41.tar.bz2
chat-463fd8c20b6e20d1cc669810c339770b9b1ede41.zip
Add the ability to switch from email to ldap and back
Diffstat (limited to 'webapp/root.jsx')
-rw-r--r--webapp/root.jsx32
1 files changed, 27 insertions, 5 deletions
diff --git a/webapp/root.jsx b/webapp/root.jsx
index 6ab5e80a0..bb5f506c1 100644
--- a/webapp/root.jsx
+++ b/webapp/root.jsx
@@ -35,7 +35,6 @@ import SignupUserComplete from 'components/signup_user_complete.jsx';
import ShouldVerifyEmail from 'components/should_verify_email.jsx';
import DoVerifyEmail from 'components/do_verify_email.jsx';
import AdminConsole from 'components/admin_console/admin_controller.jsx';
-import ClaimAccount from 'components/claim/claim_account.jsx';
import SignupTeamComplete from 'components/signup_team_complete/components/signup_team_complete.jsx';
import WelcomePage from 'components/signup_team_complete/components/team_signup_welcome_page.jsx';
@@ -46,6 +45,12 @@ import UsernamePage from 'components/signup_team_complete/components/team_signup
import PasswordPage from 'components/signup_team_complete/components/team_signup_password_page.jsx';
import FinishedPage from 'components/signup_team_complete/components/team_signup_finished.jsx';
+import Claim from 'components/claim/claim.jsx';
+import EmailToOAuth from 'components/claim/components/email_to_oauth.jsx';
+import OAuthToEmail from 'components/claim/components/oauth_to_email.jsx';
+import LDAPToEmail from 'components/claim/components/ldap_to_email.jsx';
+import EmailToLDAP from 'components/claim/components/email_to_ldap.jsx';
+
import {addLocaleData} from 'react-intl';
import enLocaleData from 'react-intl/locale-data/en';
import esLocaleData from 'react-intl/locale-data/es';
@@ -308,10 +313,6 @@ function renderRootComponent() {
component={Login}
/>
<Route
- path='claim'
- component={ClaimAccount}
- />
- <Route
path='reset_password'
component={PasswordResetSendLink}
/>
@@ -319,6 +320,27 @@ function renderRootComponent() {
path='reset_password_complete'
component={PasswordResetForm}
/>
+ <Route
+ path='claim'
+ component={Claim}
+ >
+ <Route
+ path='oauth_to_email'
+ component={OAuthToEmail}
+ />
+ <Route
+ path='email_to_oauth'
+ component={EmailToOAuth}
+ />
+ <Route
+ path='email_to_ldap'
+ component={EmailToLDAP}
+ />
+ <Route
+ path='ldap_to_email'
+ component={LDAPToEmail}
+ />
+ </Route>
</Route>
</Route>
</Route>