Skip to content

Commit

Permalink
Merge pull request #340 from unitaryfund/333_fix_account_recovery
Browse files Browse the repository at this point in the history
#339: Fix account recovery
  • Loading branch information
WrathfulSpatula authored Nov 23, 2021
2 parents 3246bab + a9c59aa commit 39992e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/Recover.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Recover extends React.Component {
axios.post(config.api.getUriPrefix() + '/password', request)
.then(res => {
this.props.onLogin()
this.context.history.push('/')
window.location.href = '/'
})
.catch(err => {
this.setState({ isRequestFailed: true, requestFailedMessage: ErrorHandler(err) })
Expand All @@ -109,7 +109,7 @@ class Recover extends React.Component {
<div className='row'>
<div className='col-md-3' />
<div className='col-md-6'>
<span><b>If you have forgotten your password,</b> enter either your username or account email below, and we will send a password recovery link to the associated account email, if it exists.</span><br />
<span><b>If you have forgotten your password,</b> enter either your username or account email below, and your new password. If your account recovery link is valid, your password will be changed, and you will be redirected to the homepage.</span><br />
</div>
<div className='col-md-3' />
</div>
Expand Down

0 comments on commit 39992e9

Please sign in to comment.