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'>
<Switch>
<Route path='/password-reset/confirm/:uid/:token'>
<Route path='/password/reset/confirm/:uid/:token'>
<ConfirmReset />
</Route>
<Route path='/password-reset'>
<Route path='/password/reset'>
<PasswordReset />
</Route>

View File

@ -65,7 +65,7 @@ export function LoginForm(props) {
<Message basic warning>
<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>
</Form>
);

View File

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