Add more detailed warning messages to signup / reset
This commit is contained in:
parent
7f9dd5119b
commit
4afedefd89
|
@ -291,7 +291,7 @@ def link_old_member(data, user):
|
|||
try:
|
||||
member = models.Member.objects.get(old_email__iexact=data['email'])
|
||||
except models.Member.DoesNotExist:
|
||||
msg = 'Unable to find email in old portal.'
|
||||
msg = 'Unable to find email in old portal. Maybe try your other email addresses?'
|
||||
logger.info(msg)
|
||||
raise ValidationError(dict(email=msg))
|
||||
except models.Member.MultipleObjectsReturned:
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user