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