Add more detailed warning messages to signup / reset

This commit is contained in:
2020-10-03 20:54:26 +00:00
parent 7f9dd5119b
commit 4afedefd89
2 changed files with 8 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ function ResetForm() {
});
return (
<Form onSubmit={handleSubmit}>
<Form onSubmit={handleSubmit} error={error.email == 'Not found.'}>
<Form.Input
label='Email'
name='email'
@@ -45,6 +45,12 @@ function ResetForm() {
error={error.email}
/>
<Message
error
header='Email not found in Spaceport'
content='You can only use this form if you have an account with this new member portal.'
/>
<Form.Button loading={loading} error={error.non_field_errors}>
Submit
</Form.Button>