Skip to content

Commit

Permalink
Forgot password QA
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Oct 22, 2021
1 parent d174bdb commit 3b86808
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions web/components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,9 @@ class TheComponent extends Component {
this.props.history.replace("/forgot-password?confirm=1&username="+encodeURIComponent(this.state.resetUsername))
})
.catch(e => {
e.json().then(error => {
this.setState({ isLoading: false, error: error });
}).catch(() => {
this.setState({ isLoading: false, error: {message:'Sorry there was a problem, check you entered the correct email address or try again later'} });
})
this.setState({isLoading: false})
this.props.history.replace("/forgot-password?confirm=1&username="+encodeURIComponent(this.state.resetUsername))

});
}

Expand Down Expand Up @@ -390,7 +388,9 @@ class TheComponent extends Component {
<div>
<InputGroup
id="email"
title="Please enter the e-mail address that you used when registering for DiagnosisView"
title={<span>
Please enter the e-mail address that you used when registering for DiagnosisView. Following this, you will be taken to the next step in the reset procedure
</span>}
type="email"
placeholder="Enter email"
className="mb-4"
Expand Down

0 comments on commit 3b86808

Please sign in to comment.