Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Запрет создания внешнего пользователя с id_hash нулевой длины. #656

Merged
merged 3 commits into from
Aug 26, 2024

Conversation

eugemos
Copy link
Contributor

@eugemos eugemos commented Aug 25, 2024

Что сделано

Схема входных данных для создания нового внешнего пользователя изменена таким образом, что бы невозможно было создать пользователя с id_hash нулевой длины.

Как проверял

Локально, через страницу документации API.
Проверил, что при попытке создания волонтёра или фонда с id_hash нулевой длины возвращается ошибка.
Проверил, что при попытке создания волонтёра или фонда с id_hash длины 1 всё работает как надо: запись в БД создаётся.

Copy link

@Xalgina Xalgina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Протестировано, на пустой хэш приходит ошибка. ОК

@gorskyolga gorskyolga merged commit ec643f0 into develop Aug 26, 2024
5 checks passed
@gorskyolga gorskyolga deleted the fix/external-user-with-empty-id_has-creation-647 branch August 26, 2024 20:14
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.

Баг: можно создать external_user с id_hash = ''
3 participants