Add anti-fraud verification questions and scam warnings
- posts can carry up to 3 verification questions (post_verification_questions,
changelog 026); to contact the author one answers them first
- POST /api/v1/posts/{id}/claim creates a PENDING chat with the answers as a
CLAIM message; the claimant cannot write or see the phone until the author
approves via POST /api/v1/chats/{chatId}/verification
- plain first message to such a post and phone reveal return 403
VERIFICATION_REQUIRED; GET /api/v1/chats/{chatId} exposes the status
- FraudSignals flags prepayment, card data (Luhn) and SMS-code requests in
messages (MessageDto.fraudSignal); ChatDto.otherUserCreatedAt for new accounts
- claim limits: 5 per day per account, 2 per post per 30 days, 10/h per IP
- docs/anti-fraud.md, tests
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -10,7 +10,8 @@ Spring Boot бэкенд сервиса объявлений «Потерял /
|
||||
- [docs/redis.md](docs/redis.md) — что и как хранится в Redis;
|
||||
- [docs/images-storage.md](docs/images-storage.md) — картинки, MinIO, сжатие, presigned URL, удаление, AI-модерация картинок;
|
||||
- [docs/chats.md](docs/chats.md) — чаты: сообщения, фото и видео во вложениях, обработка видео, доступ к файлам;
|
||||
- [docs/phone-protection.md](docs/phone-protection.md) — номер телефона: согласие автора и защита от массового сбора.
|
||||
- [docs/phone-protection.md](docs/phone-protection.md) — номер телефона: согласие автора и защита от массового сбора;
|
||||
- [docs/anti-fraud.md](docs/anti-fraud.md) — защита от мошенников: контрольные вопросы у находок, предупреждения о предоплате.
|
||||
|
||||
## Содержание
|
||||
|
||||
|
||||
Reference in New Issue
Block a user