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:
parent
ef8ecd3737
commit
296b1339ec
@ -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(
|
||||
|
@ -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)} />
|
||||
|
@ -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)}
|
||||
|
Loading…
Reference in New Issue
Block a user