Add more detailed warning messages to signup / reset

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

View File

@ -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:

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>