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:
|
try:
|
||||||
member = models.Member.objects.get(old_email__iexact=data['email'])
|
member = models.Member.objects.get(old_email__iexact=data['email'])
|
||||||
except models.Member.DoesNotExist:
|
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)
|
logger.info(msg)
|
||||||
raise ValidationError(dict(email=msg))
|
raise ValidationError(dict(email=msg))
|
||||||
except models.Member.MultipleObjectsReturned:
|
except models.Member.MultipleObjectsReturned:
|
||||||
|
|
|
@ -37,7 +37,7 @@ function ResetForm() {
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Form onSubmit={handleSubmit}>
|
<Form onSubmit={handleSubmit} error={error.email == 'Not found.'}>
|
||||||
<Form.Input
|
<Form.Input
|
||||||
label='Email'
|
label='Email'
|
||||||
name='email'
|
name='email'
|
||||||
|
@ -45,6 +45,12 @@ function ResetForm() {
|
||||||
error={error.email}
|
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}>
|
<Form.Button loading={loading} error={error.non_field_errors}>
|
||||||
Submit
|
Submit
|
||||||
</Form.Button>
|
</Form.Button>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user