🧑💻 Improve sign up error message
This commit is contained in:
@@ -94,11 +94,20 @@ export const SignInForm = ({
|
||||
status: 'info',
|
||||
description: t('auth.signinErrorToast.tooManyRequests'),
|
||||
})
|
||||
else
|
||||
else if (response.error.includes('sign-up-disabled'))
|
||||
showToast({
|
||||
title: t('auth.signinErrorToast.title'),
|
||||
description: t('auth.signinErrorToast.description'),
|
||||
})
|
||||
else
|
||||
showToast({
|
||||
status: 'info',
|
||||
description: t('errorMessage'),
|
||||
details: {
|
||||
content: 'Check server logs to see relevent error message.',
|
||||
lang: 'json',
|
||||
},
|
||||
})
|
||||
} else {
|
||||
setIsMagicLinkSent(true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user