1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 01:13:14 +01:00

redirect /signup -> /login

This commit is contained in:
Matthias Kretschmann 2018-06-01 10:58:50 +02:00
parent ef8ecd3737
commit 296b1339ec
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 26 additions and 42 deletions

View File

@ -41,9 +41,8 @@ const ROUTES = {
<Route
path='logout'
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
<Route path='signup'>
<Redirect to="/login" />
</Route>
<Redirect from='signup' to='login' />
<Route path='signup' />
<Route
path='password_reset'
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
@ -92,12 +91,8 @@ const ROUTES = {
<Route
path='logout'
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
<Route
path='signup'
component={ProxyHandler(
AuthPrizeRoleRedirect({ to: '/collection', when: ['is_admin', 'is_judge', 'is_jury'] }),
AuthRedirect({to: '/register_piece', when: 'loggedIn'})
)(SPSignupContainer)} />
<Redirect from='signup' to='login' />
<Route path='signup' />
<Route
path='password_reset'
component={ProxyHandler(

View File

@ -68,9 +68,8 @@ let ROUTES = {
<Route
path='logout'
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
<Route path='signup'>
<Redirect to="/login" />
</Route>
<Redirect from='signup' to='login' />
<Route path='signup' />
<Route
path='password_reset'
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
@ -112,9 +111,8 @@ let ROUTES = {
<Route
path='logout'
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
<Route path='signup'>
<Redirect to="/login" />
</Route>
<Redirect from='signup' to='login' />
<Route path='signup' />
<Route
path='password_reset'
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
@ -157,9 +155,8 @@ let ROUTES = {
<Route
path='logout'
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
<Route path='signup'>
<Redirect to="/login" />
</Route>
<Redirect from='signup' to='login' />
<Route path='signup' />
<Route
path='password_reset'
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
@ -211,9 +208,8 @@ let ROUTES = {
<Route
path='logout'
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
<Route path='signup'>
<Redirect to="/login" />
</Route>
<Redirect from='signup' to='login' />
<Route path='signup' />
<Route
path='password_reset'
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
@ -258,9 +254,8 @@ let ROUTES = {
path='logout'
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)}
footer={MarketFooter} />
<Route path='signup'>
<Redirect to="/login" />
</Route>
<Redirect from='signup' to='login' />
<Route path='signup' />
<Route
path='password_reset'
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)}
@ -312,9 +307,8 @@ let ROUTES = {
<Route
path='logout'
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
<Route path='signup'>
<Redirect to="/login" />
</Route>
<Redirect from='signup' to='login' />
<Route path='signup' />
<Route
path='password_reset'
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
@ -349,9 +343,8 @@ let ROUTES = {
<Route
path='logout'
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
<Route path='signup'>
<Redirect to="/login" />
</Route>
<Redirect from='signup' to='login' />
<Route path='signup' />
<Route
path='password_reset'
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
@ -386,9 +379,8 @@ let ROUTES = {
<Route
path='logout'
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
<Route path='signup'>
<Redirect to="/login" />
</Route>
<Redirect from='signup' to='login' />
<Route path='signup' />
<Route
path='password_reset'
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
@ -423,9 +415,8 @@ let ROUTES = {
<Route
path='logout'
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
<Route path='signup'>
<Redirect to="/login" />
</Route>
<Redirect from='signup' to='login' />
<Route path='signup' />
<Route
path='password_reset'
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
@ -459,9 +450,8 @@ let ROUTES = {
<Route
path='logout'
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
<Route path='signup'>
<Redirect to="/login" />
</Route>
<Redirect from='signup' to='login' />
<Route path='signup' />
<Route
path='password_reset'
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />

View File

@ -48,9 +48,8 @@ const COMMON_ROUTES = (
headerTitle={getLangText('COLLECTION')}
disableOn='noPieces'
footer={Footer} />
<Route path='signup'>
<Redirect to="/login" />
</Route>
<Redirect from="signup" to="login" />
<Route path='signup' />
<Route
path='logout'
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(LogoutContainer)}