Use new password reset URLs in client

master
Tanner Collin 4 years ago
parent ca808e1d67
commit 942ecab890
  1. 4
      webclient/src/App.js
  2. 2
      webclient/src/LoginSignup.js
  3. 2
      webclient/src/PasswordReset.js

@ -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>

@ -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>
);

@ -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);

Loading…
Cancel
Save