mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
Merge pull request #27445 from overleaf/slg-improve-domain-matcher-error
Improve domain matcher error message GitOrigin-RevId: 8f07a8e27854637cb931f852e6c59d4960caa33b
This commit is contained in:
@@ -273,6 +273,14 @@ const _checkConfirmationCode =
|
||||
})
|
||||
}
|
||||
|
||||
if (error.name === 'InvalidInstitutionalEmailError') {
|
||||
return res.status(422).json({
|
||||
message: {
|
||||
key: 'email_does_not_belong_to_university',
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
logger.err({ error }, 'failed to check confirmation code')
|
||||
|
||||
return res.status(500).json({
|
||||
|
||||
@@ -522,6 +522,7 @@
|
||||
"email_attribute": "",
|
||||
"email_confirmed_onboarding": "",
|
||||
"email_confirmed_onboarding_message": "",
|
||||
"email_does_not_belong_to_university": "",
|
||||
"email_limit_reached": "",
|
||||
"email_link_expired": "",
|
||||
"email_must_be_linked_to_institution": "",
|
||||
|
||||
@@ -307,6 +307,9 @@ function ErrorMessage({ error }: { error: string }) {
|
||||
case 'email_already_registered':
|
||||
return <span>{t('email_already_registered')}</span>
|
||||
|
||||
case 'email_does_not_belong_to_university':
|
||||
return <span>{t('email_does_not_belong_to_university')}</span>
|
||||
|
||||
case 'too_many_confirm_code_resend_attempts':
|
||||
return <span>{t('too_many_confirm_code_resend_attempts')}</span>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user