Use new password reset URLs in client

This commit is contained in:
Tanner Collin 2020-06-23 21:01:21 +00:00
parent ca808e1d67
commit 942ecab890
3 changed files with 4 additions and 4 deletions

View File

@ -194,10 +194,10 @@ function App() {
<div className='topPadding'> <div className='topPadding'>
<Switch> <Switch>
<Route path='/password-reset/confirm/:uid/:token'> <Route path='/password/reset/confirm/:uid/:token'>
<ConfirmReset /> <ConfirmReset />
</Route> </Route>
<Route path='/password-reset'> <Route path='/password/reset'>
<PasswordReset /> <PasswordReset />
</Route> </Route>

View File

@ -65,7 +65,7 @@ export function LoginForm(props) {
<Message basic warning> <Message basic warning>
<Message.Header>Forgot your password?</Message.Header> <Message.Header>Forgot your password?</Message.Header>
<p><Link to='/password-reset/'>Click here</Link> to reset it.</p> <p><Link to='/password/reset/'>Click here</Link> to reset it.</p>
</Message> </Message>
</Form> </Form>
); );

View File

@ -67,7 +67,7 @@ function ConfirmForm() {
const handleSubmit = (e) => { const handleSubmit = (e) => {
if (loading) return; if (loading) return;
setLoading(true); setLoading(true);
requester('/rest-auth/password/reset/confirm/', 'POST', '', input) requester('/password/reset/confirm/', 'POST', '', input)
.then(res => { .then(res => {
setLoading(false); setLoading(false);
setSuccess(true); setSuccess(true);