Skip to content

фикс отсутствия ошибки при регистрации с невалидной почтой#343

Merged
r1m199 merged 4 commits into
profcomff:mainfrom
r1m199:fix-email-reg
Apr 26, 2026
Merged

фикс отсутствия ошибки при регистрации с невалидной почтой#343
r1m199 merged 4 commits into
profcomff:mainfrom
r1m199:fix-email-reg

Conversation

@r1m199
Copy link
Copy Markdown
Contributor

@r1m199 r1m199 commented Apr 16, 2026

Действовал по шагам:
Деструктурировать ответ method как {error, response}
Если есть error, то пробросить error
Обозначить переменную error в блоке catch на выражение: err?.detail?.[0]?? err;
В toastStore.push в поле title добавить ?? error.msg ?? error
В итоге должен показываться тост с Value error,

Пришлось добавить err: any в catch, так как было неизвестно, есть ли detail у него
выброс ошибки возможно реализован коряво

Check-List

  • [V] Вы проверили свой код перед отправкой запроса?
  • [?] Вы написали тесты к реализованным функциям?
  • [?] Вы не забыли применить форматирование black и isort для Back-End или Prettier для Front-End?

Comment thread src/api/controllers/auth/decorators.ts Outdated
Comment thread src/api/controllers/auth/decorators.ts Outdated
Comment thread src/api/controllers/auth/decorators.ts Outdated
Comment thread src/api/controllers/auth/decorators.ts Outdated
Comment thread src/api/controllers/auth/decorators.ts Outdated
@r1m199 r1m199 requested a review from BatuevIO April 25, 2026 20:48
@r1m199 r1m199 merged commit 1815c43 into profcomff:main Apr 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] отсутствие уведомления об использовании не валидной почты при регистрации

2 participants