mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
Add error message for CSRF missing
Happens after server restart while client has site open
This commit is contained in:
parent
278b60277c
commit
0d551422b9
|
@ -33,6 +33,14 @@ function DescribeError({ error }: { error: ErrorData }) {
|
|||
</div>
|
||||
);
|
||||
}
|
||||
if (error.response.status === 403 && error.message.includes('CSRF')) {
|
||||
return (
|
||||
<div>
|
||||
<p>{'Соединение с сервером потеряно. Перезагрузите страницу'}</p>
|
||||
<PrettyJson data={error} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call
|
||||
const isHtml = isResponseHtml(error.response);
|
||||
|
@ -62,7 +70,7 @@ function InfoError({ error }: InfoErrorProps) {
|
|||
'select-text'
|
||||
)}
|
||||
>
|
||||
<p className='clr-text-default font-normal'>
|
||||
<p className='font-normal clr-text-default'>
|
||||
Пожалуйста сделайте скриншот и отправьте вместе с описанием ситуации на почту{' '}
|
||||
<TextURL href={urls.mail_portal} text='portal@acconcept.ru' />
|
||||
<br />
|
||||
|
|
Loading…
Reference in New Issue
Block a user