Commit d135ef58 authored by Audrey Hamelers's avatar Audrey Hamelers
parent d150f8d7
Pipeline #13058 passed with stages
in 5 minutes and 42 seconds
......@@ -36,7 +36,17 @@ const PasswordReset = ({ errors, handleSubmit, touched, status }) => (
)}
{!isEmpty(errors) && typeof errors === 'string' && (
<Notification type="error">{errors}</Notification>
<Notification type="error">
{errors === 'jwt expired' ? (
<React.Fragment>
{`Your password reset link has expired. Please `}
<Link to="/password-reset">reset your password</Link>
{` again.`}
</React.Fragment>
) : (
errors
)}
</Notification>
)}
{status && status.reset && (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment