Move Edit Password into the UI

This commit is contained in:
Alex Gleason
2023-09-20 14:19:03 -05:00
parent 68bdcd30de
commit 977d908db0
3 changed files with 5 additions and 8 deletions

View File

@@ -136,6 +136,7 @@ import {
RegistrationPage,
LoginPage,
PasswordReset,
PasswordResetConfirm,
} from './util/async-components';
import GlobalHotkeys from './util/global-hotkeys';
import { WrappedRoute } from './util/react-router-helpers';
@@ -361,6 +362,9 @@ const SwitchingColumnsArea: React.FC<ISwitchingColumnsArea> = ({ children }) =>
<WrappedRoute path='/login' page={DefaultPage} component={LoginPage} publicRoute exact />
<WrappedRoute path='/reset-password' page={DefaultPage} component={PasswordReset} publicRoute exact />
<WrappedRoute path='/edit-password' page={DefaultPage} component={PasswordResetConfirm} publicRoute exact />
<Redirect from='/auth/password/new' to='/reset-password' />
<Redirect from='/auth/password/edit' to={`/edit-password${search}`} />
<WrappedRoute page={EmptyPage} component={GenericNotFound} content={children} />
</Switch>