Use new password reset URLs in client
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user